lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron Leach <cameron.develo...@gmail.com>
Subject Re: Why do we use Filters
Date Sat, 08 Jan 2011 02:01:55 GMT
Grant - are there any good examples for caching and reusing filters? Is that
outside the scope of what lucene offers out of the box?

On Thu, Dec 9, 2010 at 8:07 AM, Grant Ingersoll <gsingers@apache.org> wrote:

> 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.
>
> -Grant
>
>
> 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:
> http://lucene.472066.n3.nabble.com/Why-do-we-use-Filters-tp2039246p2039246.html
> > Sent from the Lucene - General mailing list archive at Nabble.com.
>
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com/
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message