Skip to content

Conversation

@ChrisHegarty
Copy link
Contributor

To allow for the future modularization of Elasticsearch with Java Modules, there are a number preparatory tasks that need be completed. This is one part of one such task: eliminate split packages.

This PR proposes to move three classes from org.apache.lucene.queries to the already existing org.elasticsearch.lucene.queries package, thus avoiding the split package with lucene. It would appear that package-private access was needed when these classes were originally conceived, but this is no longer the case.

It's worth noting that prior to this change org.apache.lucene.queries.BinaryTermQuery was being "hidden" by the ES version of this class. I'm not sure that this is all that significant, but certainly a little odd. Maybe this hints at a possible future opportunity to do further clean up and consolidation in this area.

relates #78166

Copy link
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.

LGTM. Not sure why we have our own copy of BlendedTermQuery, I'll see if I can follow that up.

@ChrisHegarty ChrisHegarty merged commit 15de603 into elastic:master Nov 25, 2021
@ChrisHegarty ChrisHegarty deleted the split_lucene_queries branch November 25, 2021 13:35
@ChrisHegarty ChrisHegarty mentioned this pull request Nov 25, 2021
58 tasks
@pugnascotia pugnascotia added the modularization Java Modules related label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modularization Java Modules related v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants