Autocomplete suggestions from the store's suggestion dictionary (redis FT.SUGGET, fuzzy).
GET /search/suggest/{term}
GET https://mercury.plutocracy.io/search/suggest/{term}
Served from Redis in all four regions (Sydney, N. Virginia, N. California, Frankfurt); DNS latency routing picks the nearest.
Autocomplete suggestions from the store's suggestion dictionary (redis FT.SUGGET, fuzzy).
Auth: Origin+bypass redis strategy.
Authentication
Send the storefront's Origin (browsers do this for you) or ?bypassToken=. A request with neither gets 401. See authentication.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
term required | path | string |
Responses
200 OK application/json
Type: SuggestResponse
Autocomplete response: plain array of suggestion strings (FT.SUGGET).
Example response (illustrative)
[
"string"
]401 No valid credential. application/json
Type: ApiErrorResponse
default An error, in the standard envelope. application/json
Type: ApiErrorResponse
Errors use the standard envelope; see errors and status codes.
Example request
curl "https://mercury.plutocracy.io/search/suggest/linen?bypassToken=$MERCURY_BYPASS_TOKEN"
Where this comes from
- Contract
SearchSuggestRouteinapi-types/src/storefront/search.ts- Route
GET /search/suggest/:termon the view app