forked from hans/Nominatim
merge marking rare name with adding name token
Only name tokens can be rare, so this should be the same function.
This commit is contained in:
@@ -70,13 +70,12 @@ class Word
|
||||
}
|
||||
} elseif (!$oSearch->hasName(true)) {
|
||||
$oNewSearch = $oSearch->clone(1);
|
||||
$oNewSearch->addNameToken($this->iId);
|
||||
if (CONST_Search_NameOnlySearchFrequencyThreshold
|
||||
$oNewSearch->addNameToken(
|
||||
$this->iId,
|
||||
CONST_Search_NameOnlySearchFrequencyThreshold
|
||||
&& $this->iSearchNameCount
|
||||
< CONST_Search_NameOnlySearchFrequencyThreshold
|
||||
) {
|
||||
$oNewSearch->markRareName();
|
||||
}
|
||||
);
|
||||
|
||||
return array($oNewSearch);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user