Documentation

Ucommerce includes full API reference documentation and lots of helpful articles to help you build your e-commerce site as effortlessly as possible.

Topics Payment Providers
v7.18

How to run the Scratch Indexer

The scratch indexer is a background process that runs all the indexers.
Triggering this will rebuild all the indexes from scratch.

How to run via UI

You can run the indexer from the UI.
To do so, navigate to the "Search" node under "Settings" in Ucommerce, and press the "Index everything form scratch" button. View of back office with indexer button

How to run via code

You can also run the indexer from your code like this:

    Ucommerce.Search.Indexers.IScratchIndexer scratchIndexer = Ucommerce.Infrastructure.ObjectFactory.Instance.Resolve<IScratchIndexer>();
    scratchIndexer.Index();