Skip to content

Instantly share code, notes, and snippets.

@kimcuhoang
Created November 22, 2018 11:16
Show Gist options
  • Save kimcuhoang/61ad4a0792f15a2f279ef7d12f653d74 to your computer and use it in GitHub Desktop.
Save kimcuhoang/61ad4a0792f15a2f279ef7d12f653d74 to your computer and use it in GitHub Desktop.
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore role:require="Standalone or ContentDelivery or ContentManagement">
<commerceEngineConfiguration type="Sitecore.Commerce.Engine.Connect.CommerceEngineConfiguration, Sitecore.Commerce.Engine.Connect">
<shopsServiceUrl patch:instead="shopsServiceUrl">https://localhost:5000/api/</shopsServiceUrl>
<commerceOpsServiceUrl patch:instead="commerceOpsServiceUrl">https://localhost:5000/commerceops/</commerceOpsServiceUrl>
<defaultEnvironment patch:instead="defaultEnvironment">DemoHomeAuthoring</defaultEnvironment>
<defaultShopName patch:instead="defaultShopName">Demo Home</defaultShopName>
</commerceEngineConfiguration>
</sitecore>
</configuration>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore role:require="Standalone or ContentDelivery or ContentManagement">
<contentSearch>
<indexConfigurations>
<indexUpdateStrategies>
<sellableItemsIntervalAsynchronousStrategyMaster type="Sitecore.Commerce.Engine.Connect.Search.Strategies.SellableItemsIntervalAsynchronousStrategy, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment patch:instead="environment">DemoHomeAuthoring</environment>
</Environments>
</sellableItemsIntervalAsynchronousStrategyMaster>
<sellableItemsIntervalAsynchronousStrategyWeb type="Sitecore.Commerce.Engine.Connect.Search.Strategies.SellableItemsIntervalAsynchronousStrategy, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment patch:instead="environment">DemoHomeShops</environment>
</Environments>
</sellableItemsIntervalAsynchronousStrategyWeb>
<categoriesIntervalAsynchronousStrategyMaster type="Sitecore.Commerce.Engine.Connect.Search.Strategies.CategoriesIntervalAsynchronousStrategy, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment patch:instead="environment">DemoHomeAuthoring</environment>
</Environments>
</categoriesIntervalAsynchronousStrategyMaster>
<categoriesIntervalAsynchronousStrategyWeb type="Sitecore.Commerce.Engine.Connect.Search.Strategies.CategoriesIntervalAsynchronousStrategy, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment patch:instead="environment">DemoHomeShops</environment>
</Environments>
</categoriesIntervalAsynchronousStrategyWeb>
<catalogsIntervalAsynchronousStrategyMaster type="Sitecore.Commerce.Engine.Connect.Search.Strategies.CatalogsIntervalAsynchronousStrategy, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment patch:instead="environment">DemoHomeAuthoring</environment>
</Environments>
</catalogsIntervalAsynchronousStrategyMaster>
<catalogsIntervalAsynchronousStrategyWeb type="Sitecore.Commerce.Engine.Connect.Search.Strategies.CatalogsIntervalAsynchronousStrategy, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment patch:instead="environment">DemoHomeShops</environment>
</Environments>
</catalogsIntervalAsynchronousStrategyWeb>
</indexUpdateStrategies>
</indexConfigurations>
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch">
<indexes hint="list:AddIndex">
<index id="sitecore_master_index">
<locations hint="list:AddCrawler">
<crawler type="Sitecore.Commerce.Engine.Connect.Search.Crawlers.SellableItemsCrawler, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment>DemoHomeAuthoring</environment>
</Environments>
</crawler>
<crawler type="Sitecore.Commerce.Engine.Connect.Search.Crawlers.CategoriesCrawler, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment>DemoHomeAuthoring</environment>
</Environments>
</crawler>
<crawler type="Sitecore.Commerce.Engine.Connect.Search.Crawlers.CatalogsCrawler, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment>DemoHomeAuthoring</environment>
</Environments>
</crawler>
</locations>
</index>
<index id="sitecore_web_index">
<locations hint="list:AddCrawler">
<crawler type="Sitecore.Commerce.Engine.Connect.Search.Crawlers.SellableItemsCrawler, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment>DemoHomeShops</environment>
</Environments>
</crawler>
<crawler type="Sitecore.Commerce.Engine.Connect.Search.Crawlers.CategoriesCrawler, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment>DemoHomeShops</environment>
</Environments>
</crawler>
<crawler type="Sitecore.Commerce.Engine.Connect.Search.Crawlers.CatalogsCrawler, Sitecore.Commerce.Engine.Connect">
<Environments hint="list">
<environment>DemoHomeShops</environment>
</Environments>
</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