lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: Filters - at what stage are they applied?
Date Thu, 19 Feb 2009 16:15:42 GMT
On Thu, Feb 19, 2009 at 6:53 AM, Joel Halbert <joel@su3analytics.com> wrote:
> By way of clarification, when a filter is used with a search query, is
> the filter applied only to documents that matched the search query or is
> it applied to all documents in the index before the query is executed?

Filters are currently applied concurrently with the scorer from the query.
They take turns skipping until they both land on the same docid, which
is a match.

See IndexSearcher.doSearch() for the actual implementation.


-Yonik
Lucene/Solr? http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message