-
-
Save islaytitans/dc5de2a8065af2a2b770 to your computer and use it in GitHub Desktop.
A Custom Lucene Index for Sitecore ContentSearch
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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<contentSearch> | |
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> | |
<indexes hint="list:AddIndex"> | |
<index id="microsite_wildcard_index_web" type="Sitecore.ContentSearch.LuceneProvider.LuceneIndex, Sitecore.ContentSearch.LuceneProvider"> | |
<param desc="name">$(id)</param> | |
<param desc="folder">$(id)</param> | |
<param desc="propertyStore" ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)" /> | |
<!-- Set the ref property to the XML path of your custom | |
IndexConfiguration node--> | |
<configuration ref="contentSearch/wildCards" /> | |
<strategies hint="list:AddStrategy"> | |
<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> | |
</index> | |
</indexes> | |
</configuration> | |
</contentSearch> | |
</sitecore> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment