Returns ranked autocomplete suggestions matching a search term across published products and categories. Results are cached in Nitro server storage for 5 minutes per unique query. Method:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/devRepro/reprodisseny/llms.txt
Use this file to discover all available pages before exploring further.
GETPath:
/api/search/suggestCaching: 5 minutes in-memory (Nitro storage)
Search is powered by a lightweight scoring function that ranks results by prefix match (score 100) and substring match (score 50). Diacritics are normalised so that
"gran" matches "Gran Formato" and "Gràfic".Query parameters
Search term. Whitespace is trimmed. Returns an empty result set when blank.
Maximum number of results to return. Clamped between 1 and 30.
Set to
"1" to bypass the Nitro cache and force a fresh search. Useful for testing.Response
200 OK
The raw search term from the request.
Array of matching items, ordered by score (products before categories at equal score).
Scoring and ranking
The scoring function normalises both the search term and candidate titles to lowercase NFD form before comparing:0 are excluded. Within the same score tier, results are sorted alphabetically by title. Products appear before categories in the final merged list.
Filtering
Only items that pass both conditions are included in the search pool:isPublished !== falsehidden !== true
showInNav !== false.
Caching
Results are stored in Nitro’scache storage layer with a 5-minute TTL:
?force=1 to bypass the cache during development.