On Mon, Mar 31, 2014 at 2:43 PM, youknow...@heroicefforts.net
<youknow...@heroicefforts.net> wrote:
> Re-reading the documentation, it seems that Solr caches the results of the fq 
> parameter, not lower level field constraints. This would imply that breaking 
> a single complex boolean filter into multiple conjunctive fq parameters would 
> improve the odds for cache hits.  Is this correct?
>
> fq=(a:foo or b:bar) and c:bah
> Vs.
> fq=(a:foo or b:bar)&fq=c:bah

Yes, you would normally want to do this if both filters had a good
chance of being used again in combination with different filters.

-Yonik
http://heliosearch.org - solve Solr GC pauses with off-heap filters
and fieldcache
  • Filter caching youknow...@heroicefforts.net
    • Re: Filter caching Yonik Seeley

Reply via email to