Direct opensearch search API
POST/queryFulltext
Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module
Example Request Body: { "query": { "match_all": {} }}
Request
Query Parameters
siteId string
Site Identifier
- application/json
Body
required
object
Responses
- 200
200 OK
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
result object
{
"result": {
"hits": {
"hits": [
{
"_index": "",
"_id": "",
"_source": {
"documentId": "",
"content": ""
}
}
]
}
}
}
Loading...