Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
New
Description
Currently, QueryVisitor only allows queries to report that they consume a fixed set of terms. For multi-term queries, however, they don't know which terms in an index they're going to match until rewrite time. Current users of this API get round this by using instanceof checks in a `visitLeaf()` method, but this is clunky and does not adapt well to user-defined queries.
We should extend QueryVisitor so that queries can report that they consume a class of terms matching an automaton, in addition to individual terms.
Attachments
Issue Links
- is related to
-
LUCENE-9031 UnsupportedOperationException on highlighting Interval Query
- Closed
- links to