On Fri, Oct 29, 2010 at 2:31 PM, Jay Luker <lb...@reallywow.com> wrote:
> This makes sense but still doesn't explain what I'm seeing in my cache
> stats. When I issue a request with rows=10 the stats show an insert
> into the queryResultCache. If I send the same query, this time with
> rows=1000, I would not expect to see a cache hit but I do.

This is a limitation in the SolrCache API.
The key into the cache does not contain rows, so the cache returns the
first 10 docs and increments it's hit count.  Then the cache user
(SolrIndexSearcher) looks at the entry and determines it can't use it.
 One way to fix this would be to add a method that says "that was
actually a miss" to the cache API.

-Yonik
http://www.lucidimagination.com

Reply via email to