I noticed a strange behavior of the Query parser for the following query on
my index.
+(category_name:"$" product_name:"$" brand_name:"$") +is_available:1
Fields, category_name, product_name and brand_name are of type "text" and
is_available is a "string" field, storing 0 or 1 for each doc in the index.

When I perform the query: *+(category_name:"$" product_name:"$"
brand_name:"$")*, i get no results (which is as expected);
However, when I perform the query: *+(category_name:"$" product_name:"$"
brand_name:"$") +is_available:1*, I get results for all is_available=1. This
is unexpected and undesired, the first half of the query is simply ignored.

I have noticed this behaviour for pretty much all the special characters: $,
^, * etc ... I am using the default text field analyzer.
Am I missing something or is this a known bug in Solr?

Cheers
Avlesh

Reply via email to