mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-24 06:22:08 +03:00
remove full-word constraint for possible main words
Reversing the address did not work most of the time because the address normally only contains the partial version of the word only. See also https://help.openstreetmap.org/questions/16317/warum-werden-straen-bei-suche-nicht-gefunden
This commit is contained in:
parent
cee45a8ece
commit
917d4f691c
@ -431,7 +431,7 @@
|
||||
{
|
||||
$aValidTokens[$aToken['word_token']] = array($aToken);
|
||||
}
|
||||
if ($aToken['word_token'][0]==' ' && !$aToken['class'] && !$aToken['country_code']) $aPossibleMainWordIDs[$aToken['word_id']] = 1;
|
||||
if (!$aToken['class'] && !$aToken['country_code']) $aPossibleMainWordIDs[$aToken['word_id']] = 1;
|
||||
$aWordFrequencyScores[$aToken['word_id']] = $aToken['search_name_count'] + 1;
|
||||
}
|
||||
if (CONST_Debug) var_Dump($aPhrases, $aValidTokens);
|
||||
|
Loading…
Reference in New Issue
Block a user