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->getField(), $state->getValue()); |
| 33 |
|
$search->addPostFilter($filter); |
| 34 |
|
} |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
/** |
| 38 |
|
* {@inheritdoc} |
Filter/Widget/Range/AbstractRange.php 1 location
|
@@ 69-75 (lines=7) @@
|
| 66 |
|
/** |
| 67 |
|
* {@inheritdoc} |
| 68 |
|
*/ |
| 69 |
|
public function modifySearch(Search $search, FilterState $state = null, SearchRequest $request = null) |
| 70 |
|
{ |
| 71 |
|
if ($state && $state->isActive()) { |
| 72 |
|
$filter = new RangeQuery($this->getField(), $state->getValue()); |
| 73 |
|
$search->addPostFilter($filter); |
| 74 |
|
} |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* {@inheritdoc} |