-
Bug
-
Resolution: Fixed
-
Major
-
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.
- Référence
-
CMS-9456 [Solr Search Tool] The request is not encapsulated into parenthesis
- Closed