mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 14:02:12 +03:00
fix postcode lookup with legacy tokenizer
This commit is contained in:
parent
cfe5284f64
commit
a97bfaf26c
@ -193,7 +193,7 @@ class LegacyQueryAnalyzer(AbstractQueryAnalyzer):
|
|||||||
lookup_word = row.word_token[1:]
|
lookup_word = row.word_token[1:]
|
||||||
elif rowclass == 'place' and row.type == 'postcode':
|
elif rowclass == 'place' and row.type == 'postcode':
|
||||||
ttype = qmod.TokenType.POSTCODE
|
ttype = qmod.TokenType.POSTCODE
|
||||||
lookup_word = row.word_token[1:]
|
lookup_word = row.word
|
||||||
else:
|
else:
|
||||||
ttype = qmod.TokenType.NEAR_ITEM if row.operator in ('in', 'near')\
|
ttype = qmod.TokenType.NEAR_ITEM if row.operator in ('in', 'near')\
|
||||||
else qmod.TokenType.QUALIFIER
|
else qmod.TokenType.QUALIFIER
|
||||||
|
Loading…
Reference in New Issue
Block a user