Skip to content

Commit

Permalink
Merge pull request #8 from dachcom-digital/benwalch-patch-1
Browse files Browse the repository at this point in the history
aggregation filter correct field for term query
  • Loading branch information
benwalch authored Mar 22, 2022
2 parents 66eb83c + 40e635d commit f231111
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Upgrade Notes

### 2.0.1
- [BUGFIX] Fix field for filter's term query [#7](https://github.com/dachcom-digital/pimcore-dynamic-search-index-provider-elasticsearch/issues/7)

## Migrating from Version 1.x to Version 2.0.0

### Global Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected function addQueryFilter(Search $query, array $queryFields): void
$boolQuery = new BoolQuery();

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

Expand Down

0 comments on commit f231111

Please sign in to comment.