@salesforce/b2c-tooling-sdk / docs / searchSchemas
Function: searchSchemas()
searchSchemas(
query,limit):SchemaSearchResult[]
Defined in: packages/b2c-tooling-sdk/src/docs/schema.ts:126
Search schemas by fuzzy query.
Parameters
query
string
The search query string to match against schema IDs
limit
number = 20
Maximum number of results to return (default: 20)
Returns
Array of schema search results with relevance scores, sorted by match score (lower scores indicate better matches)
Example
typescript
const results = searchSchemas('catalog');
results.forEach(r => console.log(r.entry.id, r.score));