authoring-rebuild-indexes
Rebuild specified Sitecore search indexes to refresh stale data. Returns queued jobs for polling; use only when indexes are actually stale to avoid expensive full rebuilds.
Instructions
Starts a rebuild of one or more Sitecore search indexes over the Authoring and Management API and returns the jobs it queued. A full rebuild of sitecore_master_index is expensive and leaves search results incomplete while it runs, so prefer it only when the index is actually stale. Poll the returned job names with authoring-get-job. Use authoring-graphql with 'query { indexes { nodes { name } } }' to list the index names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexNames | Yes | The indexes to rebuild, e.g. ['sitecore_master_index']. Required — this tool will not rebuild every index by accident. |