Skip to content

Commit d16c01b

Browse files
authored
Merge pull request #9 from dachcom-digital/bugfix/filter-field
Bugfix/filter field
2 parents 7dd008e + 00b076b commit d16c01b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Upgrade Notes
2+
3+
### 1.1.1
4+
- [BUGFIX] Fix field for filter's term query [#7](https://github.com/dachcom-digital/pimcore-dynamic-search-index-provider-elasticsearch/issues/7)

src/DsElasticSearchBundle/OutputChannel/Filter/AggregationFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ protected function addQueryFilter(Search $query, array $queryFields)
179179
$boolQuery = new BoolQuery();
180180

181181
foreach ($value as $relationValue) {
182-
$relationQuery = new TermQuery($this->name, $relationValue);
182+
$relationQuery = new TermQuery($this->options['field'], $relationValue);
183183
$boolQuery->add($relationQuery, $this->options['query_type']);
184184
}
185185

0 commit comments

Comments
 (0)