Function: searchSpec()
searchSpec(
spec):SearchSpec
Defined in: ts/src/specs.ts:113
Validate and return a search spec — the query length is checked against the
core limit at construction (mirrors pypaginate's SearchSpec), surfacing the
core's message as a SearchQueryError. Specs may still be written as plain
literals; use this when you want fail-fast validation up front.