lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Sokolov <msoko...@safaribooksonline.com>
Subject Re: post filtering for boolean filter queries
Date Tue, 03 Dec 2013 22:04:50 GMT
On 12/03/2013 01:55 AM, Dmitry Kan wrote:
> Hello!
>
> We have been experimenting with post filtering lately. Our setup is a
> filter having long boolean query; drawing the example from the Dublin's
> Stump the Chump:
>
> fq=UserId:(user1 OR user2 OR...OR user1000)
>
> The underlining issue impacting performance is that the combination of user
> ids in the query above is unique per each user in the system and on top the
> combination is changing every day.
>
> Our idea was to stop caching the filter query with {!cache=false}. Since
> there is no way to introspect the contents of the filter cache to our
> knowledge (jmx?), we can't be sure those are not cached. This is because
> the initial query per each combination takes substantially more time (as if
> it was *not* cached) than the second and subsequent queries with the same
> fq (as if it *was* cached).
>
> Question is: does post filtering support boolean queries in fq params?
>
> Another thing we have been trying is assigning a cost to the fq relatively
> higher than for other filter queries. Does this feature support the boolean
> queries in fq params as well?
>
Dmitry - I went to a talk at LR where this problem was discussed, and 
the solution of implementing a custom filter cache only for logged-in 
users  was discussed -- sounds interesting, but maybe some tricky parts 
to it

-Mike

Mime
View raw message