Skip to content

Instantly share code, notes, and snippets.

@RyanABailey
Created March 17, 2016 03:28
Show Gist options
  • Save RyanABailey/28a5724e49a674462368 to your computer and use it in GitHub Desktop.
Save RyanABailey/28a5724e49a674462368 to your computer and use it in GitHub Desktop.
Index Strategy
<?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">
<index id="MySearchIndex" type="Sitecore.ContentSearch.LuceneProvider.SwitchOnRebuildLuceneIndex, Sitecore.ContentSearch.LuceneProvider">
<strategies hint="list:AddStrategy">
<!-- NOTE: order of these is controls the execution order -->
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/intervalAsync3Hour" />
</strategies>
</index>
</indexes>
</configuration>
</contentSearch>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment