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

[Solr Search Tool] A NOT request inside parenthesis doesn't work

XMLWordPrintable

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

      In the Solr search tool, I'm writing this request :

      NOT(metadata:[* TO *])

      I get results.

      But when I try the same request with additional parenthesis :

      (NOT(metadata:[* TO *]))

      I don't have any results.

      In the first case, the sent Solr query is :

      q=(allContentTypes:myType AND NOT(genericTerm_s:[* TO *]))&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

      In the second one :

      q=(allContentTypes:myType AND (NOT(genericTerm_s:[* TO *])))&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

      Note : I have the same problem if I use - instead of NOT.
      I need this because I have to add an OR operator between two negatives clauses.

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

              Created:
              Updated:
              Resolved: