1、查找所有索引
GET index/_mapping
{
}
2、查询
GET index/type/_search
{
}
3、count文章来源:https://www.toymoban.com/news/detail-559975.html
GET index/type/_count
{
}
4、查询SQL:文章来源地址https://www.toymoban.com/news/detail-559975.html
where application = "service-client"
and name = "gauge.response.star-star.favicon.ico"
and timestamp <= "2017-08-18T20:25:11.000Z"
order by value desc
{
"size": 10,
"sort": [
{
"value": "desc"
},
"_score"
],
"query": {
"bool": {
"must": [
{
"match": {
"application.keyword": {
"query": "nb-service-client"
}
}
},
{
"match": {
"name.keyword": {
"query": "gauge.response.star-star.favicon.ico"
}
}
},
{
"range": {
"timestamp": {<
到了这里,关于Elasticsearch增删改查、count、sum、group by、order by、like的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!