@@ 59-61 (lines=3) @@ | ||
56 | private function buildMatchPart($field, FilterState $state) |
|
57 | { |
|
58 | if (false === strpos($field, '+')) { |
|
59 | if (strpos($field, '^') !== false) { |
|
60 | list ($field, $boost) = explode('^', $field); |
|
61 | } |
|
62 | $query = new MatchQuery($field, $state->getValue(), $this->parameters); |
|
63 | !isset($boost) ? : $query->addParameter('boost', $boost); |
|
64 | } else { |
|
@@ 66-68 (lines=3) @@ | ||
63 | !isset($boost) ? : $query->addParameter('boost', $boost); |
|
64 | } else { |
|
65 | list ($path, $field) = explode('+', $field); |
|
66 | if (strpos($field, '^') !== false) { |
|
67 | list ($field, $boost) = explode('^', $field); |
|
68 | } |
|
69 | $mQuery = new MatchQuery($field, $state->getValue(), $this->parameters); |
|
70 | !isset($boost) ? : $mQuery->addParameter('boost', $boost); |
|
71 | $query = new NestedQuery($path, $mQuery); |