Skip to content

Commit f231111

Browse files
authored
Merge pull request #8 from dachcom-digital/benwalch-patch-1
aggregation filter correct field for term query
2 parents 66eb83c + 40e635d commit f231111

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

UPGRADE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Upgrade Notes
22

3+
### 2.0.1
4+
- [BUGFIX] Fix field for filter's term query [#7](https://github.com/dachcom-digital/pimcore-dynamic-search-index-provider-elasticsearch/issues/7)
5+
36
## Migrating from Version 1.x to Version 2.0.0
47

58
### Global Changes

src/DsElasticSearchBundle/OutputChannel/Filter/AggregationFilter.php

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

138138
foreach ($value as $relationValue) {
139-
$relationQuery = new TermQuery($this->name, $relationValue);
139+
$relationQuery = new TermQuery($this->options['field'], $relationValue);
140140
$boolQuery->add($relationQuery, $this->options['query_type']);
141141
}
142142

0 commit comments

Comments
 (0)