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

Unwrapping boolean query consists of single MUST clause in parser

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            khitrin Nikolay Khitrin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment