首页 > 其他 > 详细

elastic search 常用查询

时间:2018-08-07 20:17:14      阅读:125      评论:0      收藏:0      [点我收藏+]

1.查询mapping

curl -X GET "10.0.38.111:1200/metric_data_bus_2018-08-07/_mapping/data_bus?pretty"

2.filter查询

curl -X GET "10.0.38.111:1200/metric_d_2018-08-07/_search?pretty&size=1" -H Content-Type: application/json -d{
"query": {
"bool": {
"must": { "match_all": {} },
"filter": [{
"range": {
"data.store_latency": {
"gte": 200
}
}
},{
"range": {
"data.parser_latency": {
"gte": 60000
}
}
}]
}
}
}

 

elastic search 常用查询

原文:https://www.cnblogs.com/zhengwenqiang/p/9438653.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!