Skip to content

Advance doc instead of offset in competitive iterator #14530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2025

Conversation

gf2121
Copy link
Contributor

@gf2121 gf2121 commented Apr 21, 2025

#14523 (comment)

Should we include this in 10.2.1?

Comment on lines -536 to +537
if (docsWithField.docID() < offset) {
docsWithField.advance(offset);
if (docsWithField.docID() < doc) {
docsWithField.advance(doc);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good. It should also go into 10.2, could you augment the changes entry for this bug fix to include this PR and such?

@gf2121 gf2121 added this to the 10.2.1 milestone Apr 22, 2025
@gf2121 gf2121 merged commit a8b503f into apache:main Apr 22, 2025
7 checks passed
jpountz pushed a commit to jpountz/lucene that referenced this pull request Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants