Hi, I am trying make use of User Defined cache functionality to optimise a particular workflow. We are using Solr 7.4.
Step 1. I noticed, first we would have to add Custom Cache entry in solrconfig.xml. What’s its Config API alternative for solrCould ? I couldn’t find one at, https://lucene.apache.org/solr/guide/7_4/config-api.html (or may be I missed it). Could anyone point out to some link ? Step 2. In step 2, to insert the required cache, I could see there is cacheInsert() method available for SolrIndexSearcher class. I am not sure how to build object for this class. I started with CoreContainer object, which just needs SOLR_HOME for initialisation. >From this I was trying to get SolrCore objects. And then I was trying to build object of SolrIndexSearcher from above SolrCore class objects : => SolrIndexSearcher newSearcher = new SolrIndexSearcher(_core, _core.getNewIndexDir(), _core.getLatestSchema(), _core.getSolrConfig().indexConfig, “test query", false, _core.getDirectoryFactory()); But getAllCoreNames return me empty list of SolrCore objects. So it didn’t work. Not sure, what am I missing , any pointer would be greatly appreciated. Regards, Abhishek