Created
September 17, 2015 22:03
-
-
Save BillCacy/47203bbd6506db4accad to your computer and use it in GitHub Desktop.
Sitecore site search custom index, based off of the default web index.
This file contains hidden or 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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<contentSearch> | |
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> | |
<indexes hint="list:AddIndex"> | |
<index id="sitesearch_web_index" type="Sitecore.ContentSearch.LuceneProvider.LuceneIndex, Sitecore.ContentSearch.LuceneProvider"> | |
<param desc="name">$(id)</param> | |
<param desc="folder">$(id)</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/sitesearchWebConfiguration" /> | |
<strategies hint="list:AddStrategy"> | |
<!-- NOTE: order of these is controls the execution order --> | |
<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</Root> | |
</crawler> | |
</locations> | |
</index> | |
</indexes> | |
</configuration> | |
</contentSearch> | |
</sitecore> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment