Skip to content

Commit

Permalink
keep lines as they were
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Khludnev <mkhl@apache.org>
  • Loading branch information
gd-spb-e1m authored and mkhludnev committed Feb 3, 2024
1 parent 4e49f1c commit bb39519
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,16 @@ protected Query doToQuery(QueryShardContext context) throws IOException {
}

BitSetProducer previousParentFilter = context.getParentFilter();
context.nestedScope().nextLevel(nestedObjectMapper);
try {
context.setParentFilter(parentFilter);
innerQuery = this.query.toQuery(context);
context.nestedScope().nextLevel(nestedObjectMapper);
try {
innerQuery = this.query.toQuery(context);
} finally {
context.nestedScope().previousLevel();
}
} finally {
context.setParentFilter(previousParentFilter);
context.nestedScope().previousLevel();
}

// ToParentBlockJoinQuery requires that the inner query only matches documents
Expand Down

0 comments on commit bb39519

Please sign in to comment.