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:
Sarah Hoffmann
2017-12-17 23:50:16 +01:00
parent cdfa31c390
commit c7b903f4b0

View File

@@ -262,7 +262,7 @@ class SearchDescription
$iOp = Operator::NEAR; // near == in for the moment
if ($aSearchTerm['operator'] == '') {
if (sizeof($this->aName)) {
if (sizeof($this->aName) || $this->oContext->isBoundedSearch()) {
$iOp = Operator::NAME;
}
$oSearch->iSearchRank += 2;