---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [docs](../index.md) / loadSearchIndex

# Function: loadSearchIndex()

> **loadSearchIndex**(): [`SearchIndex`](../interfaces/SearchIndex.md)

Defined in: [packages/b2c-tooling-sdk/src/docs/search.ts:246](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/docs/search.ts#L246)

Loads the combined search index from every bundled corpus directory.

Combines the Script API reference, standard job steps, Developer Center
guides, and this project's own docs so all are searchable through the same
functions. Corpora that have not been generated are skipped.

## Returns

[`SearchIndex`](../interfaces/SearchIndex.md)

The combined search index with all documentation entries
