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

Classic query parser should allow autoGeneratePhraseQueries=true when splitOnWhitespace=false

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      LUCENE-7533 disabled the option combination splitOnWhitespace=false/autoGeneratePhraseQueries=true because of how autoGeneratePhraseQueries=true is handled: a query chunk is treated as if it were literally quoted. When splitOnWhitespace=false, a query chunk can be multiple whitespace-separated words, and auto-quoting multiple terms will produce inappropriate phrase queries.

      I have an idea about how to fix this: autoGeneratePhraseQueries=true is supposed to cause phrase queries to be constructed when multiple analyzed terms result from a single query word, e.g. when WordDelimiter(Graph)Filter splits words up. Maybe this could be re-implemented in terms of offsets, since all terms from the same original term share the same offsets.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              steve_rowe Steve Rowe
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: