mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 02:58:13 +00:00
assume name for special operator in bounded search
With bounded=1 we already have a restricted area, so it does not make sense to interpret the query as a near search. Fixes #311.
This commit is contained in:
@@ -262,7 +262,7 @@ class SearchDescription
|
|||||||
|
|
||||||
$iOp = Operator::NEAR; // near == in for the moment
|
$iOp = Operator::NEAR; // near == in for the moment
|
||||||
if ($aSearchTerm['operator'] == '') {
|
if ($aSearchTerm['operator'] == '') {
|
||||||
if (sizeof($this->aName)) {
|
if (sizeof($this->aName) || $this->oContext->isBoundedSearch()) {
|
||||||
$iOp = Operator::NAME;
|
$iOp = Operator::NAME;
|
||||||
}
|
}
|
||||||
$oSearch->iSearchRank += 2;
|
$oSearch->iSearchRank += 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user