Ok, makes sense. However, when the core is initially created, the data is not yet there. Running the firstSearcher queries against empty index won’t have any beneficial effects when it comes to cache warming. Is there any way to open the first searcher after the data is pulled from the leader, and therefore, run the warmup queries? What’s the point of opening the first searcher when initially the core is created, if there is no data?
> On 8. Nov 2021, at 9:30 PM, Shawn Heisey <apa...@elyograg.org> wrote: > > On 11/8/21 12:44 PM, Nick Vladiceanu wrote: >> When the “firstSearcher” queries are supposed to run (or, when the >> fistSearcher is supposed to be opened)? Right after the new core is created >> or once the index is downloaded from the leader? > > > The firstSearcher queries will be run whenever a brand new searcher is > created for the core and a previous searcher does not exist. > > This will be at the following times: > > - Core is initially created. > - Core is reloaded. > - Solr is restarted. > > The newSearcher queries will be run whenever the existing searcher is > replaced with a new one. This will typically be at commit time. > > Thanks, > Shawn >