I have a SOLR search that was behaving unexpectedly. When I go into the SOLR administration and run the following searches, I get a weird behavior (Note that myField__s
only has 2 possible values, MyValue1
and MyValue2
).
// 13,461 found - Good
fq:
// 9,168 found - Good
fq: myField__s:"MyValue1"
// 4,293 found - Good
fq: NOT myField__s:"MyValue1"
// 0 found - Bad, expected 13,461
fq: myField__s:"MyValue1" OR NOT myField__s:"MyValue1"
// 9,168 found - Good
fq: myField__s:"MyValue1" OR NOT myField__s:"MyValue2"
// 9,168 found - Bad, expected 13,461
fq: myField__s:"MyValue1" OR (NOT myField__s:"MyValue1")
I feel like there is some huge thing I'm missing about the fq syntax. Can anyone offer any guidance?