Skip to content

Variable: searchIndexInfoSchema

const searchIndexInfoSchema: ZodObject<{ alias: ZodOptional<ZodString>; columns: ZodOptional<ZodArray<ZodString>>; isDefault: ZodOptional<ZodBoolean>; name: ZodString; primaryKey: ZodOptional<ZodString>; }, $strip>

Schema for the boot-time index catalogue a UI reads to populate a search box (the payload of the plugin’s client config / GET /api/search/indexes). An entry names an index, an optional short alias, and the columns worth showing, so a search box needs no server round-trip to render.