Skip to content

Function: resolveIndexName()

resolveIndexName(config, reference): string | null

Resolve a caller-supplied index reference (a full UC name or a configured alias) into a concrete index name. Falls back to the default index when the reference is empty. Returns null when nothing can be resolved so callers raise a stable, user-facing error rather than calling a phantom index.

ResolvedSearchConfig

string | undefined

string | null