Update Solr Configuration

  1. Open this folder where Solr is downloaded:
    <solrpath>\Collection Name\conf.

    For example, C:\Installations\solr-8.7.0\server\solr\plmdms\conf.

  2. Rename the managed-schema file to schema.xml.
  3. Remove all ManagedIndexSchemaFactory definitions in the solrconfig.xml file.
  4. Add <schemaFactory class="ClassicIndexSchemaFactory"/> above the <codecFactory class="solr.SchemaCodecFactory"/> line in the solrconfig.xml file.
  5. Modify the solrconfig.xml file in the <updateRequestProcessorChain> tag by setting update.autoCreateFields to false.
  6. Add these lines after the <luceneMatchVersion> tag.
    <lib dir="C:\Installations\solr-8.7.0\contrib\extraction\lib" regex=".*\.jar" /> 
    <lib dir="C:\Installations\solr-8.7.0\dist\" regex="solr-cell-\d.*\.jar" />
    

    C:\Installations\solr-8.7.0\ is the path where Solr is downloaded.

  7. Add this code above the line:
    <! - -A request handler that returns indented JSON by default -- >
    <requestHandler name="/update/extract" startup="lazy" class="solr.extraction.ExtractingRequestHandler" >
                		<lst name="defaults">
    			<str name="lowernames">true</str>
    			<str name="fmap.content">_text_</str>
       	</lst>
    		   </requestHandler>
    
  8. Reload the core(s).
    Note: This step is required only when the core or collection is initially created.
  9. Ensure Solr is started automatically after a reboot. This can be done by creating a startup file.