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

Extend QueryVisitor to support multi-term queries

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.4
    • 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

          Activity

            People

              romseygeek Alan Woodward
              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