Skip to content

Commit

Permalink
fix sort builder rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Oct 8, 2024
1 parent 7e4e1d3 commit 84fe337
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ public RetrieverBuilder rewrite(QueryRewriteContext ctx) throws IOException {
if (sortBuilders != null) {
newSortBuilders = new ArrayList<>(sortBuilders.size());
for (var sort : sortBuilders) {
changed |= newSortBuilders.add(sort.rewrite(ctx));
var newSort = sort.rewrite(ctx);
newSortBuilders.add(newSort);
changed = newSort != sort;
}
}
var rewrittenFilters = rewritePreFilters(ctx);
Expand Down

0 comments on commit 84fe337

Please sign in to comment.