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

Allow QueryBuilder subclass to override createSpanQuery

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4, 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      QueryBuilder creates one span near query per path when multi-word synonyms are detected in a phrase query. Span near queries are created using createSpanQuery which is a protected final method. Since the method is final it is not possible to change the behavior in a subclass. It can be useful for clients to change how this query is built so I propose to make it a non-final protected method.

        Attachments

        1. LUCENE-8250.patch
          0.9 kB
          Jim Ferenczi

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jim.ferenczi Jim Ferenczi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: