curl -XGET '10.128.55.1:9200/st_twitter_ref/st_twitter_ref/_search?pretty' -H 'Content-Type:application/json' -d'
{
"aggs" : {
"max_id" : {
"max" : {
"field" : "id"
}
}
},
"size":0
}'
ES查询某个索引中的最大id
最新推荐文章于 2024-07-27 04:35:49 发布
这是一个使用curl命令在Elasticsearch中查询st_twitter_ref索引中最大id的示例。请求通过GET方法发送到10.128.55.1:9200,查询内容包括聚合操作以获取最大id,并设置返回结果大小为0,专注于聚合数据。
摘要由CSDN通过智能技术生成