You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2008/06/01 21:43:11 UTC
Re: date filter filtering out non-dated items?
: While I could add a future date to these documents, this kind of feels
: hackish and I would be interested in other ideas on how to filter out
: expired documents.
this just came up on the solr list, the answer is equally applicable
but note that you'll need to combine it with some other query class
(MatchAllDocs perhaps)...
>> you have to invert your logic. docs that "have not yet expired, or will
>> never expire" match the negacted query for "docs expired in the past"
http://www.nabble.com/expression-in-an-fq-parameter-fails-to17353677.html#a17375261
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org