Skip to content

Optimize QueryVisitor.EMPTY_VISITOR#16003

Merged
dsmiley merged 1 commit into
apache:mainfrom
dsmiley:QueryVisitorOptimizeEMPTY_VISITOR
May 6, 2026
Merged

Optimize QueryVisitor.EMPTY_VISITOR#16003
dsmiley merged 1 commit into
apache:mainfrom
dsmiley:QueryVisitorOptimizeEMPTY_VISITOR

Conversation

@dsmiley
Copy link
Copy Markdown
Contributor

@dsmiley dsmiley commented May 1, 2026

It's a shame the EMPTY_VISITOR was nonetheless still processing various MultiTermQuery implementations. This fixes that.

Copy link
Copy Markdown
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

+1

@dsmiley
Copy link
Copy Markdown
Contributor Author

dsmiley commented May 4, 2026

Should I bother with a changelog?

@msfroh
Copy link
Copy Markdown
Contributor

msfroh commented May 5, 2026

Should I bother with a changelog?

My vote is "no -- just ship it".

It's a very nice change, but it's a functionally transparent cleanup. If someone gets a big benefit, it's a happy surprise. 😁

@romseygeek
Copy link
Copy Markdown
Contributor

I think it's worth sticking something under 'Optimizations'?

@dsmiley dsmiley merged commit b03bd1f into apache:main May 6, 2026
12 of 13 checks passed
@dsmiley dsmiley deleted the QueryVisitorOptimizeEMPTY_VISITOR branch May 6, 2026 03:30
dsmiley added a commit that referenced this pull request May 7, 2026
Return false for acceptField.

(cherry picked from commit b03bd1f)
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