Skip to content

BeechCMS


BeechCMS / @beechcms/search-client / SearchClientOptions

Interface: SearchClientOptions ​

Properties ​

debounceMs? ​

optional debounceMs?: number


dimensions? ​

optional dimensions?: number


onEmbedError? ​

optional onEmbedError?: (error) => void

Called when the semantic tier fails; search() still resolves with the lexical results. Without it, a 401/403 (missing or wrong key) is logged with console.warn.

Parameters ​

error ​

SearchEmbedError

Returns ​

void


publishableKey? ​

optional publishableKey?: string

Publishable key (beech_pk_…), sent as X-API-Key on the embed and index requests: those routes sit behind the Public API key check. A secret key (beech_sk_…) is refused.