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

ComplexPhraseQuery's toString method always omits field name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 8.5.2
    • Fix Version/s: 8.7
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      The toString(String field) method in org.apache.lucene.queryparser.complexPhrase.ComplexPhraseQueryParser$ComplexPhraseQuery should only omit the field name if query's field name is not equal to field name that is passed as an argument.

      Instead, the query's field name is never included in the returned String.

        Attachments

        1. LUCENE-9401.patch
          3 kB
          Munendra S N
        2. LUCENE-9401.patch
          1 kB
          Thomas Hecker

          Activity

            People

            • Assignee:
              munendrasn Munendra S N
              Reporter:
              tomhecker Thomas Hecker
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: