Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13380

Unwrapping boolean query consists of single MUST clause in parser

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 8.0, master (9.0)
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:
      None

      Description

      Solr query parser unwraps boolean queries with single SHOULD clause.

      It works fine with OR query operator, but parser can’t unwrap single-clause query in {!q.op=AND} case.

       

      I’m not familiar with edismax parser and this patch might affect it.
      Single clause case looks pretty safe and existing tests were passed, but I ought to ask for peer review not only standard parser patch, but also it effect on edismax.

        Attachments

        1. SOLR-13380.patch
          2 kB
          Nikolay Khitrin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              khitrin Nikolay Khitrin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: