lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: fitler vs query
Date Tue, 21 Feb 2006 19:04:00 GMT
Hoss, come on, where are you - Filters! ;)

John, filters are handy for situations where you want to run your query multiple times against
the same sub-set of your indexed documents.  For instance, if you have Documents that span
several years, and want to be able to search individual years, you create a filter for each
year, cache it, and run the new query against the appropriate year's filter.

Look at the very first line of the very first snippet here (section 5.5.5):


----- Original Message ----
From: John Powers <>
Sent: Tue 21 Feb 2006 10:31:49 AM EST
Subject: fitler vs query


Before I learned about filters in lucene I was building my initial query
as a stringbuffer and then I use that with a queryparser.    Is there
any difference/advantage to separating out the "filter" part of my query
into a proper filter in lucene or does it just add requirements the same
to the query as I am doing (+field:blah AND field:blah)?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message