indexing-rebuild-search-index
Rebuild Sitecore search indexes after content changes. Target specific subtrees with id/path for updates, or rebuild entire indexes when needed.
Instructions
Rebuilds Sitecore search indexes. Omit id and path to rebuild whole indexes — and omit name too to rebuild every index, which is expensive and leaves search results incomplete while it runs. Supply id or path to rebuild only that item's subtree, which is what you want after changing a branch of content. Pass asJob to queue it and poll with common-get-sitecore-job rather than waiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Rebuild only this item's subtree. Supply this or path, or neither for whole indexes. | |
| name | No | The index to rebuild; supports wildcards. Omit to rebuild every index when rebuilding whole indexes, or to use 'sitecore_*_index' when rebuilding one item's subtree. | |
| path | No | Rebuild only this item's subtree, e.g. /sitecore/content/Home. Supply this or id, or neither for whole indexes. | |
| asJob | No | Queue the rebuild as a Sitecore job instead of running it inline. | |
| database | No | Database to resolve an id against (default master). | master |
| includeRemoteIndex | No | Whole-index rebuilds only: include remote indexes. |