lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: run filter queries after post filter
Date Wed, 09 Oct 2013 20:14:19 GMT
Ah, I think you're misunderstanding the nature of post-filters.
Or I'm confused, which happens a lot!

The whole point of post filters is that they're assumed to be
expensive (think ACL calculation). So you want them to run
on the fewest documents possible. So only docs that make it
through the primary query _and_ all lower-cost filters will get
to this post-filter. This means they can't be cached for
instance, because they don't see (hopefully) very many docs.

This is radically different than normal fq clauses, which are
calculated on the entire corpus and can thus be cached.

Best,
Erick

On Wed, Oct 9, 2013 at 11:59 AM, Rohit Harchandani <rharchu@gmail.com> wrote:
> Hey,
> so the post filter logs the number of ids that it receives.
> With the above filter having cost=200, the post filter should have received
> the same number of ids as before ( when the filter was not present ).
> But that does not seem to be the case...with the filter query on the index,
> the number of ids that the post filter is receiving reduces.
>
> Thanks,
> Rohit
>
>
> On Tue, Oct 8, 2013 at 8:29 PM, Erick Erickson <erickerickson@gmail.com>wrote:
>
>> Hmmm, seems like it should. What's our evidence that it isn't working?
>>
>> Best,
>> Erick
>>
>> On Tue, Oct 8, 2013 at 4:10 PM, Rohit Harchandani <rharchu@gmail.com>
>> wrote:
>> > Hey,
>> > I am using solr 4.0 with my own PostFilter implementation which is
>> executed
>> > after the normal solr query is done. This filter has a cost of 100. Is it
>> > possible to run filter queries on the index after the execution of the
>> post
>> > filter?
>> > I tried adding the below line to the url but it did not seem to work:
>> > &fq={!cache=false cost=200}field:value
>> > Thanks,
>> > Rohit
>>

Mime
View raw message