: Great question... it should be, as it's created and registered in the : SolrIndexSearcher constructor. is the cache .name() returning the : right thing?
I was just about to ask that. it wasn't untill i started digging into CacheCOnfig and SolrIndexSearcher because of this thread that i realized it doesn't matter what "name" attribute you give your cache in the config, the SolrCache implimentation itself is responsible for specifying the name that can be used to access the searcher with SolrIndexSearcher.getCache() if you define your MyCache.name function to be... public String name() { return "foo"; } then even if you have... <cache name="facet_cache" class="org.foo.MyCache" /> ...you'll access your cache using the name "foo". if you want to pay attention to the name specified i nteh config, that's the responsability of your init method to get it from the Map or args. (you didn't mention what your name() method looks like, but you did include your init method, and i can see you aren't looking at the Map at all) -Hoss