: I want to execute the following query:
: (spacegroupID:g*) OR (!userID:g*).
First: "!" is not a negation operator in the lucene/solr query parser
: In above syntax (!userID:g*) gives results correctly.
...i don't think it's doing what you think it's doing.
second: boolean queries can't
Do you have to remove the documents which satisfies the both conditions? If
so use AND.
you have used OR, so if the first condition is satisfied , it will not
consider the second condition at all.
try using fq for both the condition, fq=(spacegroupID:g*) fq=(!userID:g*).
-Original Message-