@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | |
27 | 27 | /** @var array */ |
28 | 28 | private $options = [ |
29 | - '+' => [self::OPTION_MUST, 'must', 'match'], |
|
30 | - '-' => [self::OPTION_MUST_NOT, 'must_not', 'match'] |
|
29 | + '+' => [self::OPTION_MUST, 'must', 'match'], |
|
30 | + '-' => [self::OPTION_MUST_NOT, 'must_not', 'match'] |
|
31 | 31 | ]; |
32 | 32 | |
33 | 33 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | private function init() { |
47 | 47 | $this->setShould('should'); |
48 | - $this->setMatch('match'); |
|
48 | + $this->setMatch('match'); |
|
49 | 49 | |
50 | 50 | $curr = substr($this->getWord(), 0, 1); |
51 | 51 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | if (substr($this->getWord(), 0, 1) === '"') { |
60 | 60 | $this->setMatch('match'); |
61 | 61 | if (strpos($this->getWord(), " ") > -1) { |
62 | - $this->setMatch('match'); |
|
62 | + $this->setMatch('match'); |
|
63 | 63 | } |
64 | 64 | } |
65 | 65 |
@@ -261,9 +261,9 @@ |
||
261 | 261 | $queryFields = []; |
262 | 262 | foreach ($fields as $field) { |
263 | 263 | if (!$this->fieldIsOutLimit($request, $field)) { |
264 | - $value = $content->getWord(); |
|
265 | - $spec = [$field => ["query" => $value, "fuzziness" => "AUTO"]]; |
|
266 | - $queryFields[] = [$content->getMatch() => $spec]; |
|
264 | + $value = $content->getWord(); |
|
265 | + $spec = [$field => ["query" => $value, "fuzziness" => "AUTO"]]; |
|
266 | + $queryFields[] = [$content->getMatch() => $spec]; |
|
267 | 267 | } |
268 | 268 | } |
269 | 269 |