lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <>
Subject Re: Filter query optimization
Date Mon, 19 Oct 2009 20:45:04 GMT

> this is a fast operation anyway

Can you elaborate on why this is a fast operation?

Basically there's a distributed query with a filter, where on a
number of the servers, the filter query isn't matching anything,
however I'm seeing load on those servers (where nothing
matches), so I'm assuming the filter is generated (and cached)
which is fine, then the user query is being performed on a
filter where no documents match. I could misinterpreting the
data, however, I want to find out about this use case regardless
as it likely will crop up again for us.


On Mon, Oct 19, 2009 at 12:07 PM, Yonik Seeley
<> wrote:
> On Mon, Oct 19, 2009 at 2:55 PM, Jason Rutherglen
> <> wrote:
>> If a filter query matches nothing, then no additional query should be
>> performed and no results returned?  I don't think we have this today?
> No, but this is a fast operation anyway (In Solr 1.4 at least).
> Another thing to watch out for is to not try this with filters that
> you don't know the size of (or else you may force a popcount on a
> BitDocSet that would not otherwise have been needed).
> It could also potentially complicate warming queries - need to be
> careful that the combination of filters you are warming with matches
> something, or it would cause the fieldCache entries to not be
> populated.
> -Yonik

View raw message