Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Duplicate
-
main (10.0)
-
None
-
None
Description
Each configured cache is currently informed of its associated SolrIndexSearcher when SolrCore calls the SolrIndexSearcher.warm(...), which in turn calls SolrCache.warm(...), passing the searcher as an argument.
It is inconsistent that caches are informed of subsequent searchers, but not of the first registered searcher. A note on SolrCache.warm suggests the possibility of providing the SolrIndexSearcher on cache.init(...). That seems reasonable to me, and would be one way to resolve the current inconsistency. But that would likely constitute a major change, perhaps involving a change in the SolrCache plugin API, and the responsibility of each cache to maintain its own reference to its associated searcher.
Another way to resolve the current inconsistency would be to introduce a method to (analogous to warm(...)) that the first registered SolrIndexSearcher could use to inform its caches.
Attachments
Issue Links
- is superceded by
-
SOLR-16654 Add support for node-level caches
- Closed
- links to