lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: Why do we use Filters
Date Thu, 09 Dec 2010 16:07:08 GMT
Filters are a way of restricting the search space to a subset of documents.  They basically
work out to be a bitset indicating whether a given document is allowed to appear in the results
or not.  They do not affect scoring.  You can obtain similar results through ANDing a query
too, but then it likely affects scoring.  Also, you should only really use filters if you
intend to cache it and reuse it.


On Dec 8, 2010, at 3:09 AM, Romi wrote:

> I am working with Lucene.My work is to Query nd perform search on it. I want
> to know the use of Filters.
> -----
> Romi
> -- 
> View this message in context:
> Sent from the Lucene - General mailing list archive at

Grant Ingersoll

View raw message