You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by stockii <st...@shopgate.com> on 2011/01/11 09:46:16 UTC

!= unequal in fq !?

hello.

i need to filter a field. i want all fields are not like the given string.

eg.: ...&fq=status!=refundend

how can i realize this in solr !? i dont want to use
...string+OR+string+OR+...
-- 
View this message in context: http://lucene.472066.n3.nabble.com/unequal-in-fq-tp2233235p2233235.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: != unequal in fq !?

Posted by stockii <st...@shopgate.com>.
ah, cool thx =) 
-- 
View this message in context: http://lucene.472066.n3.nabble.com/unequal-in-fq-tp2233235p2233261.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: != unequal in fq !?

Posted by Markus Jelsma <ma...@openindex.io>.
Hi,

It works just like boolean operators in the main query:
fq=-status:refunded

http://lucene.apache.org/java/2_9_1/queryparsersyntax.html#Boolean operators

Cheers


> hello.
> 
> i need to filter a field. i want all fields are not like the given string.
> 
> eg.: ...&fq=status!=refundend
> 
> how can i realize this in solr !? i dont want to use
> ...string+OR+string+OR+...