From c7b903f4b0d900c9efbb2cb7a3dac153cf339367 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 17 Dec 2017 23:50:16 +0100 Subject: [PATCH 1/1] 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. --- lib/SearchDescription.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index 13775d65..5431b3eb 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -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; -- 2.39.5