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

Required operator (+) is being ignored when using default conjunction operator AND

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 8.3.1
    • None
    • query parsers
    • None
    • rel 7.4

      cluster mode

    Description

      Using solr 8.3.0 it seems like required operator isn't functioning properly when default conjunction operator is AND.

      Steps to reproduce:

      • 20 docs
      • all have text field
      • 17 have the value A
      • 13 have the value B
      • 10 have both A and B (the intersection)
      •  default operator is set to AND

       

      • my query is:
        +A OR B

       

      • the result is all 20 docs (as if I searched
        A OR B

        )

       

      • when I change my query to be
        {!q.op=OR} +A OR B

        I get my expected result which is "A is required B is optional" (which in this case happened to be all 17 docs that includes the value A, some of them includes the value B but none of the not include A!)

      Attachments

        Activity

          People

            Unassigned Unassigned
            buch Eran Buch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: