Hi Everyone,
I have hit a weird behavior of Boolean Query, when I am
running the query with below param’s it’s not behaving as expected. can
you please help me understand the behavior here?
q=*:*&fq=((-documentTypeId:3)+AND+companyId:29096)&version=2.2&start=0&rows=10&indent=on&debugQuery=true
èReturns 0 matches
filter_queries: ((-documentTypeId:3) AND companyId:29096)
parsed_filter_queries: +(-documentTypeId:3) +companyId:29096
q=*:*&fq=(-documentTypeId:3+AND+companyId:29096)&version=2.2&start=0&rows=10&indent=on&debugQuery=true
è returns 1600 matches
filter_queries:(-documentTypeId:3 AND companyId:29096)
parsed_filter_queries:-documentTypeId:3 +companyId:29096
Can you please help me understand what am I missing here?
Thanks in Advance.
Thanks & Best Regards,
Abhishek