: I want a cache to cache all result of a query(all steps including : collapse, highlight and facet). I read : http://wiki.apache.org/solr/SolrCaching, but can't find a global : cache. Maybe I can use external cache to store key-value. Is there any : one in solr?
One of SOlr's design principles is that it only bothers to cache things internally if those things are going to be useful for multiple requests -- because those are things that can *only* be cached internally. ie: the filterCache caches filters thta might be used in other requests with different queries, the queryResultsCache caches query results that might be used in other requests with different rows/fl params, the documentCache caches documents that might be used in other requests with differnet ... anything. In all of those cases, Solr does the caching because there is no way something external to Solr could do it. Solr isn't likely to ever have a cache that caches the entire result for a request. At that point the only time that result is going to be useful is for an identical request, and an external system -- specificly an HTTP Cache like Squid or Varnish (or if you are using Embedded Solr, some other cache) is in an even better position to deal with it. -Hoss