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 id

  • promotionbooks : the promotion book name

  • startdate : the promotion start date

  • enddate : the promotion end date

  • status : the promotion status

  • disabled : indicates if the promotion is disabled or not

  • excludeditemids : indicates items, such as products that are excluded from the promotion, if any

  • includeditemids : indicates items, such as products that are included in the promotion, if any

  • environment : the environment where the promotion was created