Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9062

Extend QueryVisitor to support multi-term queries

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.4
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

            Activity

              People

              • Assignee:
                romseygeek Alan Woodward
                Reporter:
                romseygeek Alan Woodward
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 40m
                  5h 40m