Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Siddhant Deshmukh <[email protected]>
  • Loading branch information
deshsidd committed Oct 9, 2023
1 parent 4e79d74 commit 3a46da1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ protected void extractInnerHitBuilders(Map<String, InnerHitContextBuilder> inner
}

@Override
public void visit(QueryBuilderVisitor visitor) {
visitor.accept(this);
public void visit(QueryBuilderVisitor visitor, int level) {
visitor.accept(this, level);
if (query != null) {
QueryBuilderVisitor subVisitor = visitor.getChildVisitor(BooleanClause.Occur.MUST);
subVisitor.accept(query);
subVisitor.accept(query, level+1);
}
}
}

0 comments on commit 3a46da1

Please sign in to comment.