Promotions indexing
Promotions indexing enables searching promotion data. This index is used by the search function in the Pricing and Promotions Manager business tool. The Promotions search index is named commerce_promotions_index
. Its crawler and strategy are defined in the Sitecore Commerce Engine Connect component. Every time a promotion is created or updated, the Commerce Engine updates the data in the PromotionsIndex
list, which causes the index to be updated.
The configuration for the index crawler is located in the following files, for Lucene or Solr:
Sitecore.Commerce.Engine.Connectors.Index.Lucene.config
Sitecore.Commerce.Engine.Connectors.Index.Solr.config
The configuration for the Promotions index strategy is located in file:
Sitecore.Commerce.Engine.Connectors.Promotions.config
By default, the index is set to be run every ten minutes.
Index fields:
promotionid
: the promotion idpromotionbooks
: the promotion book namestartdate
: the promotion start dateenddate
: the promotion end datestatus
: the promotion statusdisabled
: indicates if the promotion is disabled or notexcludeditemids
: indicates items, such as products that are excluded from the promotion, if anyincludeditemids
: indicates items, such as products that are included in the promotion, if anyenvironment
: the environment where the promotion was created