Skip to content

Commit

Permalink
Addressing Heemin comment
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Jain <[email protected]>
  • Loading branch information
vibrantvarun committed Jan 17, 2024
1 parent 0e63d85 commit b8d504a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ private Collection<Query> toQueries(Collection<QueryBuilder> queryBuilders, Quer
@Override
public void visit(QueryBuilderVisitor visitor) {
visitor.accept(this);
// getChildVisitor of NeuralSearchQueryVisitor return this.
// therefore any argument can be passed. Here we have used Occcur.MUST as an argument.
QueryBuilderVisitor subVisitor = visitor.getChildVisitor(Occur.MUST);
for (QueryBuilder subQueryBuilder : queries) {
subQueryBuilder.visit(subVisitor);
Expand Down

0 comments on commit b8d504a

Please sign in to comment.