Skip to main content

Module search

Module search 

Source
Expand description

In-memory search over the mapped Palette catalog.

Search is intentionally simple: a case-insensitive substring match over id, title, category, and description, ranked by which field matched first (id, then title, then category, then description), with original catalog order as the tiebreak. Callers that need fuzzier matching should do it client-side over the full catalog — this exists to keep GET /v1/palette/search?q= cheap and predictable.

Functions§

search_entries