The native Havenask Domain-Specific Language (DSL) is upgraded to provide a simple and user-friendly REST API. This API makes the native DSL easier to learn.
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 |