HybridSearchRequest
- qType: stringrequired
The search query the user has entered.
- anonymousType: string
_id The anonymous visitor who made this query. Used for personalization when there is no
user_id. - answer
Controls the AI answer pipeline:
true— always generate an answerfalse— search results only, no answer"AUTO"— let Miso decide per query (recommended; generates an answer only when the query looks like a question)
- Type: boolean
Controls the AI answer pipeline:
true— always generate an answerfalse— search results only, no answer"AUTO"— let Miso decide per query (recommended; generates an answer only when the query looks like a question)
- facetsType: array string[]
Fields to compute facet counts for (e.g.
categories,tags,custom_attributes.director). Counts are returned indata.facet_counts— use them to build filter UIs. - flType: array string[]
Fields to return for each product in
data.products. Any uploaded field is allowed, includingcustom_attributes.*. - fqType: string
A query in Elasticsearch query-string syntax (Lucene) that restricts the candidate products without affecting ranking — use it to scope results (e.g. by section or subscription tier).
Examples:
"section:\"markets\""— only the markets section"tier:(\"premium\" OR \"pro\")"— only premium/pro content"rating:[4 TO *]"— numeric range, rating ≥ 4"custom_attributes.designer:\"Calvin Klein\""— filter on a custom attribute
- metadataType: object
Arbitrary metadata to store with the request (e.g.
{"site": "markets"}). - orderType: string enum
_by Sort order of results:
relevance(default),published_at(newest first), or-published_at(oldest first). A record with nopublished_atsorts byupdated_atinstead. You can also send a list of order-by objects to sort on your own numeric or boolean fields.values- relevance
- published
_at - -published
_at
- rowsType: integer
Number of search results to return in
data.products. - sourceType: array string[]
_fl Fields to return for each answer source. Same field rules as
fl. - startType: integer
Offset of the first result — use with
rowsfor pagination. - stemmingType: boolean
When enabled, query words are reduced to their root form (e.g. "running" → "run"), improving recall by matching inflected forms.
- userType: string
_hash The hash of
user_id(oranonymous_id) encrypted with your Secret API Key. Send this when calling from the browser with a Publishable API Key to prevent spoofing. - userType: string
_id The signed-in user who made the query. For an anonymous visitor, use
anonymous_idinstead. Used for personalization. - userType: string
_type The type/segment of user who made the query. Used for rate limiting and segment-level personalization.
