LNG LogoLNG Logo
    • Enterprise App Development
    • Product Architecture Design
    • Data Engineering & Analytics
    • Cloud Consulting Services
    • AI-Enabled Applications
    • Remote Engineering Teams
    • UI/UX Design
    • Data Migration
    • Big Data
    • DevOps Solutions
    • Banking
    • Ecommerce
    • Fintech
    • Healthcare
    • Hospitality
    • Manufacturing
    • Telecom
    • Travel
    • Education
    • Cross-Platform & Web Development
    • Digital Experience Platform
    • Enterprise Technologies
    • Modern Frontend Interface
    • About Us
    • Blog
    • Our Team
    • Careers
    • Success Stories
Let's Talk !

How To Make Custom Solr Core In Sitecore 10.1

By: ChandanSeptember 1, 2022
Digital data flow with glowing code lines

The purpose of this blog is to explain how to set up custom Solr core for use with Sitecore. Before starting this we should have both Sitecore and solr installed on the system. All the solr cores are created by default in context with sitecore at the time of sitecore installation.Here we will see how manually we can achieve to create custom solr core in sitecore 10.1

Configure sitecore to use solr

Below changes will enable sitecore to use solr :

  1. Mentioned the search provider in web config: Go to the webroot of the sitecore instance and open the web config and populate the below settings.

<add key=”search:define” value=”Solr” />

  1. Update the solr url in the connection string of your sitecore instance as mentoioned below

<add name=”solr.search” connectionString=”https://localhost:8990/solr” />

Creating Cores in Solr

We will create a new core named sitecore_Custom_index into solr directory, Please follow the below steps:

Assuming your [SOLR_DIR] is path where you have installed the solr.

  1. Create a new folder sitecore_Custom_index inside the solr installed directory [SOLR_DIR]/server/solr
  2. Copy the conf folder from below Path:

[SOLR_DIR]/server/solr/configsets/_default folder

To

[SOLR_DIR]/server/solr/sitecore_Custom_index folder

  1. Create a file named core.properties in the folder you created ([SOLR_DIR]/server/solr/sitecore_Custom_index
  2. Edit the core.properties file and specify below values:

name=[CORE_NAME]

config=solrconfig.xml

update.autoCreateFields=false

dataDir=data

Sitecore Patch file for custom index

Create patch file in sitecore for the custom core we created in solr and paste it to the [sitecorewebroot]/App_Config/Include/Foundation

Sitecore Solr custom index XML configuration

<?xml version=”1.0″ encoding=”utf-8″?>
<configuration xmlns:patch=”http://www.sitecore.net/xmlconfig/” xmlns:role=”http://www.sitecore.net/xmlconfig/role/” xmlns:search=”http://www.sitecore.net/xmlconfig/search/”>
<sitecore role:require=”Standalone or ContentDelivery or ContentManagement” search:require=”solr”>
<contentSearch>
<configuration type=”Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch”>
<indexes hint=”list:AddIndex”>

<index id=”sitecore_custom_index” type=”Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider”>
<param desc=”name”>$(id)</param>
<param desc=”core”>sitecore_custom_index</param>
<!– This initializes index property store. Id has to be set to the index id –>
<param desc=”propertyStore” ref=”contentSearch/indexConfigurations/databasePropertyStore” param1=”$(id)” />
<configuration ref=”contentSearch/indexConfigurations/defaultSolrIndexConfiguration”>

</configuration>
<strategies hint=”list:AddStrategy”>
<!– NOTE: order of these is controls the execution order –>
<strategy ref=”contentSearch/indexConfigurations/indexUpdateStrategies/syncMaster” />
<strategy ref=”contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsync” />
</strategies>
<commitPolicyExecutor type=”Sitecore.ContentSearch.CommitPolicyExecutor, Sitecore.ContentSearch”>
<policies hint=”list:AddCommitPolicy”>
<policy type=”Sitecore.ContentSearch.TimeIntervalCommitPolicy, Sitecore.ContentSearch” />
</policies>
</commitPolicyExecutor>
<locations hint=”list:AddCrawler”>
<crawler type=”Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch”>
<Database>web</Database>
<Root>/sitecore/content/</Root>
</crawler>
</locations>
<enableItemLanguageFallback>false</enableItemLanguageFallback>
<enableFieldLanguageFallback>false</enableFieldLanguageFallback>
</index>
</indexes>
</configuration>
</contentSearch>
</sitecore>
</configuration>

Configure Manage Schema

Below steps will configure the managed schema. Open the managed scheme file from the directory [SOLR_DIR]/server/solr/sitecore_Custom_index/conf and make the below changes:

  1. Change the value in the <uniqueKey>id</uniqueKey> node to _uniqueid
  2. In the fields section, add field configuration for _uniqueid:

<field name=”_uniqueid” type=”string” indexed=”true” required=”true” stored=”true”/>

Restart Solr

The newly created sitecore_custom_index core created in solr physical directory comes in the collection of solr admin panel interface as mentioned below :

Solr Sitecore index overview

Populate Managed Schema

Go the sitecore instance control panel and click populate schema from index section. This populate managed schema file based on the content.

Sitecore control panel with Solr schema highlighted

Select the newly created core and click the populate button,this populate the managed schema file as below

Schema population options in Sitecore control panel

Index the sitecore_Custom_index

Again go the sitecore instance control panel and click index manager from index section. Only select the sitecore_Custom_core you created and click the rebuild button. This will index your custom core and when we see the solr interface, all the content item inside the item path which we mentioned in the patch file is indexed.

Rebuild index settings in Sitecore

Refresh your solr interface and you can see the content items are indexed as below:

Solr query interface with Sitecore index

Sitecore 10.1
Two CMSs, One Website: Managing Routing During WordPress to Sitecore MigrationJune 17, 2026Mastering Identity Resolution in Sitecore CDP: Anonymous to Known VisitorsMay 25, 2026

Let's Innovate, Collaborate, Build Your Product Together!

We turn your unique ideas into exceptional results. Contact us to
scale your tech capacity and accelerate business growth.

Let's Talk!
Where We Are

Our Global Presence

Delivering world-class digital solutions from three strategic locations across the globe.

South AfricaSouth Africa
ZACape Town

4th Floor, Mutual Park, Pinelands, Capetown, South Africa - 7405.

UAEUAE
AEDubai

FZCO 421, Dubai Commercity, Dubai, United Arab Emirates.

IndiaIndia
INAmritsar

SCO 6, Floor - 5, Dua Square, Ranjit Avenue, Block - B, Amritsar, Punjab, India - 143002

Logo

AI-Fuelled software agency, helping business professionals to thrive. Trusted by global leaders.

Company

  • About Us
  • Blog
  • Our Term
  • Careers
  • Success Stories

Services

  • AI-Enabled Applications
  • Big Data
  • Cloud Consulting Services
  • Data Engineering & Analytics
  • Data Migration
  • DevOps Solutions
  • Enterprise Application Development
  • Product Architecture Design
  • Remote Engineering Teams
  • UI/UX Design

Industries

  • Banking
  • Ecommerce
  • Fintech
  • Healthcare
  • Hospitality
  • Manufacturing
  • Telecom
  • Travel & Transport
  • Education

Technologies

  • Cross-Platform and Web Development
  • Digital Experience Platform
  • Enterprise Technologies
  • Modern Frontend Interface
Logo

AI-Fuelled software agency, helping business professionals to thrive. Trusted by global leaders.

Company
  • About Us
  • Blog
  • Our Term
  • Careers
  • Success Stories
Services
  • AI-Enabled Applications
  • Big Data
  • Cloud Consulting Services
  • Data Engineering & Analytics
  • Data Migration
  • DevOps Solutions
  • Enterprise Application Development
  • Product Architecture Design
  • Remote Engineering Teams
  • UI/UX Design
Industries
  • Banking
  • Ecommerce
  • Fintech
  • Healthcare
  • Hospitality
  • Manufacturing
  • Telecom
  • Travel & Transport
  • Education
Technologies
  • Cross-Platform and Web Development
  • Digital Experience Platform
  • Enterprise Technologies
  • Modern Frontend Interface

Copyright © 2026 L&G Consultancy. All Rights Reserved.
Privacy PolicyTerms and Conditions
Company Image