Skip to content

Commit

Permalink
Merge pull request #783 from afoucret/fix-nested-filters
Browse files Browse the repository at this point in the history
Fix nested filter in agg and sort orders.
  • Loading branch information
afoucret authored Feb 23, 2018
2 parents 7b33fd5 + ea65847 commit ee1b8ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function buildAggregations(

if (isset($bucketParams['nestedFilter'])) {
$nestedFilter = $this->createFilter($containerConfiguration, $bucketParams['nestedFilter']);
$bucketParams['nestedFilter'] = $nestedFilter->getQuery();
$bucketParams['nestedFilter'] = $nestedFilter;
}

if (isset($bucketParams['childBuckets'])) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function buildSordOrders(ContainerConfigurationInterface $containerConfig

if (isset($sortOrderParams['nestedFilter'])) {
$nestedFilter = $this->queryBuilder->create($containerConfig, $sortOrderParams['nestedFilter']);
$sortOrderParams['nestedFilter'] = $nestedFilter->getQuery();
$sortOrderParams['nestedFilter'] = $nestedFilter;
}
} catch (\LogicException $e) {
$sortOrderParams['field'] = $fieldName;
Expand Down

0 comments on commit ee1b8ed

Please sign in to comment.