Dzmitry
Dzmitry

Reputation: 87

Weird Solr behavior with AND operator

I'm performing 2 queries:

First query returns nothing and it's ok. But second query for some reason returns all records belonging to user.

What is wrong?

Upvotes: 0

Views: 37

Answers (1)

K.Boyette
K.Boyette

Reputation: 343

Your best bet when looking at a query and not knowing what is going on is by using the debugQuery option. It will show you what the string was entered in like as well as what it was parsed as.

There could be a lot of things going wrong. "#" could be one of your stop words. Also you could try sending a %23 since that is the url encoding for the # sign.

Upvotes: 1

Related Questions