Hmmm, should work. What is your core_name? There’s strings like collection1_shard1_replica_n4 and core_node6. Are you sure you’re using the right one?
> On Aug 28, 2019, at 3:56 PM, Arnold Bronley <arnoldbron...@gmail.com> wrote: > > Hi, > > In a custom Solr plugin code, > req.getCore().getCoreContainer().getCore(core_name) is returning null even > if core by name core_name is loaded and up in Solr. req is object > of SolrQueryRequest class. I am using Solr 8.2.0 in SolrCloud mode. > > Any ideas on why this might be the case?