mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
address tokens get a double search rank also as full terms
Fixes #1170.
This commit is contained in:
@@ -287,7 +287,7 @@ class SearchDescription
|
|||||||
if (!empty($this->aName) || !($bFirstPhrase || $sPhraseType == '')) {
|
if (!empty($this->aName) || !($bFirstPhrase || $sPhraseType == '')) {
|
||||||
if (($sPhraseType == '' || !$bFirstPhrase) && !$bHasPartial) {
|
if (($sPhraseType == '' || !$bFirstPhrase) && !$bHasPartial) {
|
||||||
$oSearch = clone $this;
|
$oSearch = clone $this;
|
||||||
$oSearch->iSearchRank++;
|
$oSearch->iSearchRank += 2;
|
||||||
$oSearch->aAddress[$iWordID] = $iWordID;
|
$oSearch->aAddress[$iWordID] = $iWordID;
|
||||||
$aNewSearches[] = $oSearch;
|
$aNewSearches[] = $oSearch;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user