-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Relocate BinaryRange to avoid split package #77994
Comments
There are a few classes in our source tree that re-use the A quick grep gives me the following:
|
@romseygeek Thanks for listing these. I've taken a pass over all of them already, and there are a number of changes that could be made in Lucene to simplify relocating these. I'll coordinate this with you. |
Closing this issue in favour of tracking the split packages at a higher level of granularity, see #78166 |
To allow for the future modularization of Elasticsearch with Java Modules, there are a number preparatory tasks that need be completed. This is one such task: eliminate split packages.
The ES class
BinaryRange
[1] is located in theorg.apache.lucene.document
package, which is shared (thus split at runtime) with Lucene-core. A split package, in this case between Elasticsearch-core and Lucene-core, will result in a configuration error at runtime when Elasticsearch-core is deployed as a module.The
BinaryRange
class accesses the package-privateRangeFieldQuery
class, thus requiring it to be in the same runtime package. In a recent Lucene change [2][3],RangeFieldQuery
has been madepublic
, thereforeBinaryRange
no longer requires to be in the same runtime package asRangeFieldQuery
. MovingBinaryRange
to a non-lucene package will eliminate the split package issue mentioned above.It would appear that
BinaryRange
is used exclusively by code inorg.elasticsearch.perculator
, so this package may be a reasonable place to relocate to.Note: The recent changes mentioned in [2][3] are in Lucene 9.0, therefore this issue has a dependency on the Lucene 9.0 upgrade. relates #73324
[1] server/src/main/java/org/apache/lucene/document/BinaryRange.java
[2] https://issues.apache.org/jira/browse/LUCENE-9319
[3] apache/lucene@6a7131e#diff-21640bf6d91f5c652943fea9744baab7b2182ee0e9eeb10a4028292d93ddb655
The text was updated successfully, but these errors were encountered: