On 10/27/2010 12:17 PM, Jay Luker wrote:
A 2nd question: while watching these stats I noticed something else
weird with the queryResultCache. It seems that inserts to the
queryResultCache depend on the number of rows requested. For example,
an initial request (solr restarted, clean cache, etc) with rows=10
will result in a insert. A 2nd request of the same query with
rows=1000 will result in a cache hit. However if you reverse that
order, starting with a clean cache, an initial request for rows=1000
will *not* result in an insert to queryResultCache. I have tried
various increments--10, 100, 200, 500--and it seems the magic number
is somewhere between 200 (cache insert) and 500 (no insert). Can
someone explain this?

Perhaps it's this setting in the <query> section of solrconfig.xml?

<queryResultMaxDocsCached>200</queryResultMaxDocsCached>

See SOLR-291.

Shawn

Reply via email to