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

ComplexPhraseQuery's toString method always omits field name

Details

    • Bug
    • Status: Reopened
    • Trivial
    • Resolution: Fixed
    • 8.5.2
    • 8.7
    • core/queryparser
    • None
    • 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
          1 kB
          Thomas Hecker
        2. LUCENE-9401.patch
          3 kB
          Munendra S N

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: