On Tue, Jun 9, 2009 at 7:47 PM, Michael Ludwig <[email protected]> wrote:
> Common cache configuration parameters include @size ("size" attribute).
>
> http://wiki.apache.org/solr/SolrCaching
>
> For each of the following, does this mean the maximum size of:
>
> * filterCache/@size - filter query results?
Maximum number of filters that can be cached.
> * queryResultCache/@size - query results?
Maximum number of queries (DocLists) that can be cached.
> * documentCache/@size - documents?
Correct.
> So if I know my tiny documents don't take up much memory (just 500
> Bytes on average), I'd want to have very different settings for the
> documentCache than if I decided to store 10 KB per doc in Solr?
Correct.
> And if I know that only 100 filters are possible, there is no point
> raising the filterCache/@size above that threshold?
Correct. Faceting also uses the filterCache so keep that in mind too.
> Given the following three filtering scenarios of (a) x:bla, (b) y:blub,
> and (c) x:bla AND y:blub, will I end up with two or three distinct
> filters? In other words, may filters be composites or are they
> decomposed as far as their number (relevant for @size) is concerned?
>
It will be three. If you want to cache separately, send them as separate fq
parameters.
--
Regards,
Shalin Shekhar Mangar.