lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: excluder filters and multivalued fields
Date Mon, 05 Apr 2010 17:32:06 GMT

: name->john
: year->2009;year->2010;year->2011
: 
: And I query for:
: q=john&fq=-year:2010
: 
: Doc1 won't be in the matching results. Is there a way to make it appear
: because even having 2010 the document has also years that don't match the
: filter query?

Not natively -- but you can index an additional field num_years=3 and then 
make your filter query...

	-(+year:2010 +num_years:1)


-Hoss


Mime
View raw message