OpenSearch Retrieval Engine Edition provides a REST API built on top of the native Havenask DSL, offering a simpler alternative for querying without learning the full DSL syntax.
Query syntax
curl -X POST "http://{endpoint}/{table_name}/search" -H 'Content-Type: application/json' -d'
{
"query": "",
"filter": "",
"config": {},
"cluster": {},
"aggs": [],
"distinct": {},
"sort": [],
"layer": [],
"analyzer": {},
"cache": {},
"summary": {},
"rank": {},
"kvpairs": {}
}
'
Parameters
|
Name |
Type |
Required |
Description |
|
endpoint |
string |
true |
The API endpoint of the instance. |
|
table_name |
string |
true |
The name of the index table to query. |
|
query |
string | json |
true |
|
|
filter |
string |
false |
|
|
config |
json |
false |
|
|
cluster |
array |
false |
|
|
aggs |
array |
false |
|
|
distinct |
json |
false |
|
|
sort |
array |
false |
|
|
layer |
array |
false |
|
|
analyzer |
json |
false |
|
|
cache |
json |
false |
|
|
summary |
json |
false |
|
|
rank |
json |
false |
|
|
kvpairs |
json |
false |
该文章对您有帮助吗?