Filter/Widget/Choice/MultiTermChoice.php 1 location
|
@@ 29-35 (lines=7) @@
|
26 |
|
/** |
27 |
|
* {@inheritdoc} |
28 |
|
*/ |
29 |
|
public function modifySearch(Search $search, FilterState $state = null, SearchRequest $request = null) |
30 |
|
{ |
31 |
|
if ($state && $state->isActive()) { |
32 |
|
$filter = new TermsQuery($this->getDocumentField(), $state->getValue()); |
33 |
|
$search->addPostFilter($filter); |
34 |
|
} |
35 |
|
} |
36 |
|
|
37 |
|
/** |
38 |
|
* {@inheritdoc} |
Filter/Widget/Range/AbstractRange.php 1 location
|
@@ 46-52 (lines=7) @@
|
43 |
|
/** |
44 |
|
* {@inheritdoc} |
45 |
|
*/ |
46 |
|
public function modifySearch(Search $search, FilterState $state = null, SearchRequest $request = null) |
47 |
|
{ |
48 |
|
if ($state && $state->isActive()) { |
49 |
|
$filter = new RangeQuery($this->getDocumentField(), $state->getValue()); |
50 |
|
$search->addPostFilter($filter); |
51 |
|
} |
52 |
|
} |
53 |
|
|
54 |
|
/** |
55 |
|
* {@inheritdoc} |