vijaykriishna opened a new pull request, #15290: URL: https://github.com/apache/lucene/pull/15290
Title: [#13710] refactor(PointRangeQuery): Refactor PointRangeQuery and PointRangeWeight to use PointQueryUtils for Point Range Logic ### Description This PR refactors the Lucene core point range query implementation to improve code reuse and maintainability: - **Introduced:** PointQueryUtils utility class to encapsulate common logic for validating point values and determining spatial relations between query ranges and indexed point ranges. - **Updated:** PointRangeQuery and PointRangeWeight to use methods from PointQueryUtils instead of duplicating logic. - **Added and Improved:** Javadocs for PointRangeWeight, PointQueryUtils, and the new package org.apache.lucene.util.search. - **Exported:** org.apache.lucene.util.search package in the module descriptor to resolve modular test failures. - Ensured all usages of point range validation and relation checks are routed through the new utility class for consistency. This refactoring does not change any external behaviour but improves code clarity, testability, and modularity. All existing tests pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
