Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9456

[Solr Search Tool] The request is not encapsulated into parenthesis

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.2.0
    • None
    • None
    • 4.2 M8

      If I set :

      metadata:value1 OR metadata:value2

      I don't have the same result than :

      (metadata:value1 OR metadata:value2)

      In the first case, the sent Solr query is :

      q=(allContentTypes:myType AND metadata:value1 OR metadata:value2)&start=0&rows=50&fl=id,score&fq=_documentType:content&fq=allContentTypes:myType&fq={!acl populationId=population-ldap login=bmaurel}&sort=title_s_sort asc

      And in the second one :

      q=(allContentTypes:myType AND (metadata:value1 OR metadata:value2))&start=0&rows=50&fl=id,score&fq=_documentType:content&fq=allContentTypes:myType&fq={!acl populationId=population-ldap login=bmaurel}&sort=title_s_sort asc

            sprieul Simon Prieul (Inactive)
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: