Last active
September 5, 2016 20:22
-
-
Save soen/fa0cbfbffbd08a324f90a559d975e8cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<contentSearch> | |
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> | |
<indexes hint="list:AddIndex"> | |
<!-- | |
The type is changed from 'type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"> | |
--> | |
<index id="sitecore_web_index" type="Sitecore.ContentSearch.SolrProvider.SwitchOnRebuildSolrSearchIndex, Sitecore.ContentSearch.SolrProvider"> | |
<param desc="name">$(id)</param> | |
<param desc="core">$(id)</param> | |
<!-- | |
The 'rebuildcore' parameter is added, which needs to point to the secondary core. | |
In this case, I've chosen to follow the default naming convention, appending a _sec to the name. | |
Basically it needs to be the same as the secondary core, which in my case, I named sitecore_web_index_sec. | |
--> | |
<param desc="rebuildcore">$(id)_sec</param> | |
<param desc="propertyStore" ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)" /> | |
<configuration ref="contentSearch/indexConfigurations/defaultSolrIndexConfiguration" /> | |
<strategies hint="list:AddStrategy"> | |
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsync" /> | |
</strategies> | |
<locations hint="list:AddCrawler"> | |
<crawler type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | |
<Database>web</Database> | |
<Root>/sitecore</Root> | |
</crawler> | |
</locations> | |
<enableItemLanguageFallback>false</enableItemLanguageFallback> | |
<enableFieldLanguageFallback>false</enableFieldLanguageFallback> | |
</index> | |
</indexes> | |
</configuration> | |
</contentSearch> | |
</sitecore> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment