Skip to content

Optimize FieldExistsQuery.count() when all docs have the field#16111

Open
iprithv wants to merge 1 commit into
apache:mainfrom
iprithv:optimize-fieldexists-count
Open

Optimize FieldExistsQuery.count() when all docs have the field#16111
iprithv wants to merge 1 commit into
apache:mainfrom
iprithv:optimize-fieldexists-count

Conversation

@iprithv
Copy link
Copy Markdown
Contributor

@iprithv iprithv commented May 23, 2026

when all documents have the field and some are deleted, both vectors and doc values still fall back to super.count(context), even though we could just return reader.numDocs() directly. fixed it!

@iprithv iprithv force-pushed the optimize-fieldexists-count branch 2 times, most recently from 5ff0197 to 10b7760 Compare May 23, 2026 01:59
@github-actions github-actions Bot added this to the 11.0.0 milestone May 23, 2026
@iprithv
Copy link
Copy Markdown
Contributor Author

iprithv commented May 28, 2026

@jpountz could you please help review this, thanks!

@iprithv iprithv force-pushed the optimize-fieldexists-count branch from 10b7760 to 0ac5a3b Compare May 28, 2026 23:43
@github-actions github-actions Bot modified the milestones: 11.0.0, 10.5.0 May 28, 2026
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.

1 participant