This is a sample solution that can enable indexing and search functionality for promotions in sitecore commerce.
For indexing any other entities, use this as a base sample and replace promotions with the relevant entities.
- Perform the initial setup of the Solr core by running the powershell script from setup folder
.\Install-Promotions-Solr.ps1
. Note: Please update the variables to match you local environment - Integrate project
Plugin.Sample.PromotionsSearch
into your solution - Integrate Policy Set
Plugin.Sample.PromotionsSearch.PolicySet-1.0.0.json
into your solution - Integrate Policy Set
Plugin.Sample.PromotionsSearch.Minions.PolicySet-1.0.0.json
into your solution - Add
Entity-PolicySet-PromotionsSearchPolicySet
to your Authoring, Shops and Minions environments{ "$type": "Sitecore.Commerce.Core.PolicySetPolicy, Sitecore.Commerce.Core", "PolicySetId": "Entity-PolicySet-PromotionsSearchPolicySet" }
- Add
Entity-PolicySet-PromotionsSearchMinionsPolicySet
to your Minions Environment{ "$type": "Sitecore.Commerce.Core.PolicySetPolicy, Sitecore.Commerce.Core", "PolicySetId": "Entity-PolicySet-PromotionsSearchMinionsPolicySet" }
- Build, Deploy and Bootstrap commerce engine.
- Import
Promotions Search.postman_collection.json
postman collection - Run the
Full Index Minion - Promotions