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

Unwrapping boolean query consists of single MUST clause in parser

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 8.0, 9.0
    • None
    • query parsers
    • 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

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

            Dates

              Created:
              Updated: