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

Optimize FieldExistsQuery.count() when all docs have the field.
Vectors return numDocs() directly.
Doc values only optimize with deletions when DocValuesSkipper is available.
points/terms are not used as proxies since they may not match doc values coverage exactly.

@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
@iprithv iprithv force-pushed the optimize-fieldexists-count branch from 0ac5a3b to 2b4a435 Compare June 1, 2026 21:10
@iprithv iprithv force-pushed the optimize-fieldexists-count branch from 2b4a435 to dc362c8 Compare June 2, 2026 07:42
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