forked from hans/Nominatim
do not mix partial and full name terms
If NameNonSearch already contains a partial term, then a full term must not be added to the Name list anymore.
This commit is contained in:
@@ -289,7 +289,7 @@ class SearchDescription
|
|||||||
$oSearch->aAddress[$iWordID] = $iWordID;
|
$oSearch->aAddress[$iWordID] = $iWordID;
|
||||||
$aNewSearches[] = $oSearch;
|
$aNewSearches[] = $oSearch;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (empty($this->aNameNonSearch)) {
|
||||||
$oSearch = clone $this;
|
$oSearch = clone $this;
|
||||||
$oSearch->iSearchRank++;
|
$oSearch->iSearchRank++;
|
||||||
$oSearch->aName = array($iWordID => $iWordID);
|
$oSearch->aName = array($iWordID => $iWordID);
|
||||||
|
|||||||
Reference in New Issue
Block a user