Computed fields allow you to add entirely new fields in your search indexes, in addition to those of Sitecore.
To create a computed index field for commerce entities you need to follow next steps:
- Create your own class which inherits from : Sitecore.Commerce.Engine.Connect.Search.ComputedFields.BaseCommerceComputedField
2. Customize the class to meet your particular needs.
The “JToken entity” object contains few information about your sellableitem (in the below example is a sellableitem from SXA)
3. Add the Computed Field in the Configuration: