Search query (POST)
Search through indexed items of a search engine. Identical to the GET variant but accepts parameters as a JSON body, which is useful when query strings would be too long or when sending complex nested structures (filters, facets, sort).
Authorizations
Doofinder API key. Pass it as: Authorization: Token <api_key>
Path Parameters
Unique id of a search engine.
Body
Search parameters sent as a JSON body. All fields are optional.
The search term. Cannot be longer than 200 characters or 10 words.
Results per page (max 100, rpp * page < 1000).
Page number of the results to return.
Restrict the search to one or more indices (e.g. ["product", "page"]).
Filter parameters for items. Keys are field names, values are lists of terms or range objects (gte, lte, gt, lt).
Negative filters. Same structure as filter.
Aggregations to compute. Each entry must include a "field" key.
Boolean logic applied to filters. Default is "and".
and, or Sort criteria. Each entry is a map of field name to direction (e.g. [{"price": "asc"}]).
Force a specific query type.
match_and, match_or, fuzzy Identifier of search session
32Identifier of user
36Enable/Disable this search in stats reports. Default: true
Enable/Disable auto filters feature. Default: false
Enable/Disable custom results feature. Default: true
Enable/Disable excluded items feature. Default: true
Enable/Disable grouping of variants as single items.
When grouping is active, include a df_variants array in each hit with the listed fields from each variant document.
Fields to exclude from auto_filters processing.
Fields to exclude from top_facet processing.
Enable/Disable title_facet feature. Default: false
Enable/Disable top_facet feature. Default: false
Response
OK
Search response. Some fields can not be included in the request if they have not data.
Banner response for a query search.
Total number of items found in the search engine for the searched term.
Id of applied custom results. This field will not be included if none of the custom results apply.
Id of applied dynamic boosting rule. This field will not be included if none of the dynamic boosting rules apply.
Information about different groupings that can be made for certain fields in the search results.
Facet terms search response. Used to aggregate a field by their values.
- Term Facet Response
- Range Facet Response
In order to get the best possible results, Doofinder tries several types of querying. This is the type of the query Doofinder made to obtain these results.
Total number of items that can be fetched.