Query
Query Index
Query results from index with index_id The following parameters are supported:
- Result type
- Result sorting
- Realtime search
- Field filter
- Fields to include in search results
- Distance fields: derived fields from distance calculations
- Highlights: keyword-in-context snippets and term highlighting
- Query facets: which facets fields to calculate and return at query time
- Facet filter: filter facets by field and value
- Result sort: sort results by field and direction
- Query type default: default query type, if not specified in query
post/api/v1/index/{index_id}/query
Path parameters
index_idinteger required
index id
Headers
apikeystring required
YOUR_SECRET_API_KEY
Request body
Example request
{
"length": 10,
"field_filter": [
"title"
],
"result_sort": [
{
"field": "date",
"order": "Ascending",
"base": "None"
}
]
}Response
Results found, returns the SearchResultObject