Add Index minion policies

Version: 10.2

Search minions are responsible for creating the index, adding documents to the index, and deleting documents from the index. You add index minion policies in the policy set file PlugIn.Minions.PolicySet-X.X.X.json.

You define minion policies in the Minion environment (for example, inet\pub\wwroot\CommerceMinions_Sc9\wwwroot\data\Environments\PlugIn.Minions.PolicySet-1.X.X.json):

Full Index minion policy

RequestResponse
     { 
"$type": "Sitecore.Commerce.Core.MinionPolicy, Sitecore.Commerce.Core","
"ListsToWatch": [
   "YOUR FULL LIST"],  
"FullyQualifiedName": "Sitecore.Commerce.Plugin.Search.FullIndexMinion, Sitecore.Commerce.Plugin.Search", 
"ItemsPerBatch": 1000
     }

Incremental Index minion policy

RequestResponse
     { 
"$type": "Sitecore.Commerce.Core.MinionPolicy, Sitecore.Commerce.Core", 
"WakeupInterval": "00:05:00", 
"ListsToWatch": [
  "YOUR INCREMENTAL LIST"],  
"FullyQualifiedName": "Sitecore.Commerce.Plugin.Search.IncrementalIndexMinion, Sitecore.Commerce.Plugin.Search", 
"ItemsPerBatch": 1000, 
"SleepBetweenBatches": 50
     }

Delete Index Documents minion policy

RequestResponse
     { 
"$type": "Sitecore.Commerce.Core.MinionPolicy, Sitecore.Commerce.Core", 
"WakeupInterval": "00:05:00", 
"ListsToWatch": [
  "YOUR DELETED LIST"],  
"FullyQualifiedName": "Sitecore.Commerce.Plugin.Search.DeleteIndexDocumentsMinion, Sitecore.Commerce.Plugin.Search", 
"ItemsPerBatch": 1000, 
"SleepBetweenBatches": 50
     }

Do you have some feedback for us?

If you have suggestions for improving this article,