Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16017

Allow first registered SolrIndexSearcher to inform its configured caches

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Duplicate
    • main (10.0)
    • None
    • search
    • 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

          Activity

            People

              Unassigned Unassigned
              magibney Michael Gibney
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m