I am trying to load a solr core (35MB for testing) in memory for faster request serving. For loading whole core in memory, I got to know of using RAMDirectoryFactory in my core's solrconfig.xml file. I replaced the default DirectoryFactory i.e.
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
with
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.RAMDirectoryFactory}"/>
and changed locktype to single as
<lockType>${solr.lock.type:single}</lockType>
in my core's solrconfig.xml file and then restarted the solr as bin/solr restart
. But after restarting the solr, SolrAdmin interface is showing zero documents as shown in following image . When I checked logs, I got following warnings:
I've googled a lot to fix this problem but found nothing. I am not getting what I am missing and how to make it work.