lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blargy <>
Subject an OR filter query
Date Sun, 04 Apr 2010 19:27:32 GMT

Is there anyway to use a filter query as an OR clause?

For example I have product listings and I want to be able to filter out
mature items by default. To do this I added: 

<lst name="appends">
  <str name="fq">mature:false</str>

But then I can never return any mature items because appending
fq=mature:true will obviously return 0 results because no item can both be
mature and non-mature. 

I can get around this using defaults:

<lst name="default">
  <str name="fq">mature:false</str>

But this is a little hacky because anytime I want to include mature items
with non-mature items I need to explicitly set fq as a blank string.

So is there any better way to do this? Thanks
View this message in context:
Sent from the Solr - User mailing list archive at

View raw message