mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-10 21:04:07 +00:00
don't use tokens from country parameter in address field of searches
fixes #218
This commit is contained in:
@@ -611,7 +611,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($aValidTokens[$sToken]))
|
// Look for partial matches.
|
||||||
|
// Note that there is no point in adding country terms here
|
||||||
|
// because country are omitted in the address.
|
||||||
|
if (isset($aValidTokens[$sToken]) && $sPhraseType != 'country')
|
||||||
{
|
{
|
||||||
// Allow searching for a word - but at extra cost
|
// Allow searching for a word - but at extra cost
|
||||||
foreach($aValidTokens[$sToken] as $aSearchTerm)
|
foreach($aValidTokens[$sToken] as $aSearchTerm)
|
||||||
|
|||||||
Reference in New Issue
Block a user