@@ -59,15 +59,15 @@ |
||
59 | 59 | if (strpos($field, '^') !== false) { |
60 | 60 | list ($field, $boost) = explode('^', $field); |
61 | 61 | } |
62 | - $query = new MatchQuery($field, $state->getValue(), $this->parameters); |
|
63 | - !isset($boost) ? : $query->addParameter('boost', $boost); |
|
62 | + $query = new MatchQuery($field, $state->getValue(), $this->parameters); |
|
63 | + !isset($boost) ?: $query->addParameter('boost', $boost); |
|
64 | 64 | } else { |
65 | 65 | list ($path, $field) = explode('+', $field); |
66 | 66 | if (strpos($field, '^') !== false) { |
67 | 67 | list ($field, $boost) = explode('^', $field); |
68 | 68 | } |
69 | - $mQuery = new MatchQuery($field, $state->getValue(), $this->parameters); |
|
70 | - !isset($boost) ? : $mQuery->addParameter('boost', $boost); |
|
69 | + $mQuery = new MatchQuery($field, $state->getValue(), $this->parameters); |
|
70 | + !isset($boost) ?: $mQuery->addParameter('boost', $boost); |
|
71 | 71 | $query = new NestedQuery($path, $mQuery); |
72 | 72 | } |
73 | 73 | return $query; |