Authorization: Bearer ********************
{
"size": 0,
"track_total_hits":true,
"query": {
"bool": {
"must": [
{
"term": {
"userSn.keyword": "AjIBoWAxNH5YkGQbyrz9VP0qfgLnk73B0SMhvNztWXQ"
}
}
]
}
},
"aggs": {
"orderStatus3Count": {
"filter": {
"term": {
"orderStatus": "3"
}
}
}
}
}
curl --location --request POST 'http://localhost:19200/es_order_sink_test/_search' \
--header 'Content-Type: application/json' \
--data-raw '{
"size": 0,
"track_total_hits":true,
"query": {
"bool": {
"must": [
{
"term": {
"userSn.keyword": "AjIBoWAxNH5YkGQbyrz9VP0qfgLnk73B0SMhvNztWXQ"
}
}
]
}
},
"aggs": {
"orderStatus3Count": {
"filter": {
"term": {
"orderStatus": "3"
}
}
}
}
}'
{}