Query Index
Changed onQuery 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
Request
- Base URLhttp://127.0.0.1
- Authnone declared. Required headers: apikey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
index id
Headers
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
Changes
- breaking
removed
subschema #2subschema #3subschema #4from therequest propertyoneOflist - breaking
removed 'propertyNames' constraint from the
/response property for the status - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
//became optional - info
the
request property default valuewas added - info
the
request property default valuewas added - info
the
request property default valuewas added - info
the
request property default valueSearchOnlywas added - info
the
request property default valueUnionwas added - info
the
request property default valuewas added - info
the
request property default valueTopkCountwas added - info
the
request property default valueLexicalwas added - info
added
subschema #2to therequest propertyoneOflist - info
added
subschema #2subschema #3subschema #4to therequest propertyoneOflist - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- breaking
- info
api operation id
query_index_api_postremoved and replaced withquery_index_post
- info