Last active
August 29, 2015 14:21
-
-
Save RyanABailey/7ed3623c03a86e608449 to your computer and use it in GitHub Desktop.
Sitecore Search 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"> | |
| <!-- Change this to Sitecore.ContentSearch.LuceneProvider.SwitchOnRebuildLuceneIndex, Sitecore.ContentSearch.LuceneProvider if you would like indexes to be | |
| built in a temporary directory i.e. while rebuilding is happening, your old indexes work like normal until the rebuild is finished. --> | |
| <index id="CustomSearch" 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/defaultLuceneIndexConfiguration"> | |
| <include hint="list:IncludeTemplate"> | |
| <template>{555CE94D-C625-4A07-9E6B-980E514BF7A0}</template> | |
| <template>{1F9C0E9E-BAE3-4B42-A3F2-E311D68C5B92}</template> | |
| </include> | |
| <IndexAllFields>true</IndexAllFields> | |
| </configuration> | |
| <strategies hint="list:AddStrategy"> | |
| <!-- NOTE: order of these is controls the execution order --> | |
| <strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsync" /> | |
| </strategies> | |
| <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