Skip to content

Fix DefaultBulkScorer to not advance the competitive iterator beyond the end of the window.#12481

Merged
jpountz merged 2 commits intoapache:mainfrom
jpountz:fix_default_bulk_scorer_advance_competitive_iterator
Aug 3, 2023
Merged

Fix DefaultBulkScorer to not advance the competitive iterator beyond the end of the window.#12481
jpountz merged 2 commits intoapache:mainfrom
jpountz:fix_default_bulk_scorer_advance_competitive_iterator

Conversation

@jpountz
Copy link
Copy Markdown
Contributor

@jpountz jpountz commented Aug 1, 2023

The way DefaultBulkScorer uses ConjunctionDISI may make it advance the competitive iterator beyond the end of the window. This may cause bugs with bulk scorers such as BooleanScorer that sometimes delegate to the single clause that has matches in a given window of doc IDs. We should then make sure to not advance the competitive iterator beyond the end of the window based on this clause, as other clauses may have matches as well.

…d the end of the window.

The way `DefaultBulkScorer` uses `ConjunctionDISI` may make it advance the
competitive iterator beyond the end of the window. This may cause bugs with
bulk scorers such as `BooleanScorer` that sometimes delegate to the single
clause that has matches in a given window of doc IDs. We should then make sure
to not advance the competitive iterator beyond the end of the window based on
this clause, as other clauses may have matches as well.
@jpountz jpountz merged commit df3632c into apache:main Aug 3, 2023
@jpountz jpountz deleted the fix_default_bulk_scorer_advance_competitive_iterator branch August 3, 2023 05:19
jpountz added a commit that referenced this pull request Aug 3, 2023
…d the end of the window. (#12481)

The way `DefaultBulkScorer` uses `ConjunctionDISI` may make it advance the
competitive iterator beyond the end of the window. This may cause bugs with
bulk scorers such as `BooleanScorer` that sometimes delegate to the single
clause that has matches in a given window of doc IDs. We should then make sure
to not advance the competitive iterator beyond the end of the window based on
this clause, as other clauses may have matches as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant