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

Can we make QueryBuilder.createFieldQuery un-final?

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4, 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      It's marked final, I assume because we want people who customize their query parsers to only override newXXXQuery instead.

      But for deeper query parser customization, like using exploring consuming a graph and creating a TermAutomatonQuery, or a union of PhraseQuery, etc., it is not possible today and one must fork the class.

        Attachments

        1. LUCENE-7560.patch
          4 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: