Skip to content

Instantly share code, notes, and snippets.

@keyan1603
Created September 20, 2023 18:38
Show Gist options
  • Save keyan1603/df00362b683b5b88cc629a1ecf929ad8 to your computer and use it in GitHub Desktop.
Save keyan1603/df00362b683b5b88cc629a1ecf929ad8 to your computer and use it in GitHub Desktop.
To add a new Coveo index in Sitecore (tested on Sitecore 9.2)
<index id="Coveo_pub_index" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider" patch:before = "*[3]">
<param desc="p_Name">$(id)</param>
<configuration ref="coveo/defaultIndexConfiguration" />
<locations hint="list:AddCrawler">
<crawler name="ContentCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
<database>pub</database>
<root>/sitecore/content</root>
<stopOnError>true</stopOnError>
</crawler>
<crawler name="MediaLibraryCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch">
<database>pub</database>
<root>/sitecore/media library/Files</root>
<stopOnError>true</stopOnError>
</crawler>
</locations>
<strategies hint="list:AddStrategy">
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/coveoOnPublishEndAsync"/>
</strategies>
<propertyStore ref="coveo/databasePropertyStore" param1="$(id)"/>
<enableItemLanguageFallback>false</enableItemLanguageFallback>
<enableFieldLanguageFallback>false</enableFieldLanguageFallback>
</index>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment