zoukankan      html  css  js  c++  java
  • ES增删改查

    GET _search
    {
      "query": {
        "match_all": {}
      }
    }

    GET _cat/indices?v&s=store.size:desc

    PUT /zzh

    DELETE /zzh

    GET /zzh/_settings

    GET /zzh/_search

    GET /zzh/_doc/1

    DELETE /zzh/_doc/1

    POST /zzh/_doc/1
    {
        "id":1,
        "name":"zzh",
        "url": "http://baidu.com/s"
    }

    POST /zzh/_doc
    {
      "name": "明月 地上",
      "url": "http://google.com",
      "@timestamp": "2021-08-24T03:05:02Z"
    }

    GET /zzh/_search
    {
    "query": {
    "bool": {
    "filter": [
    {"match_phrase": {"name": "明月"}},
    {"range": {"@timestamp": {
       "gte":"2021-08-24T03:05:00Z",
        "lt":"2021-08-24T03:07:00Z"
    }}}
    ]
    }
    }
    }

    http://localhost:9200/sw_metrics-cpm-20210824/_search

    {
    "query": {
    "match_all": {}
    },
    "size": 10,
    "from": 0,
    "sort": [
    {"time_bucket": "asc"},
    {"_id": "asc"}
    ]
    }
    {
    "query": {
    "match_all": {}
    },
    "size": 10,
    "search_after": [2021082415, "service_instance_cpm_2021082415_WW91cl9BcHBsaWNhdGlvbk5hbWU=.1_M2ZlMDIzNzcxNzVmNDkyOWFiN2EzNTNmZWM4NTljMzVAMTAuOS4wLjk1"],
    "sort": [
    {"time_bucket": "asc"},
    {"_id": "asc"}
    ]
    }
  • 相关阅读:
    ps怎么撤销的三种方法和ps撤销快捷键以及连续撤销多步快捷键
    jquery data()
    jQuery.extend方法
    Bootstrap
    骚操作
    mysql作业
    jQuery UI练习
    左侧菜单,表格,认证登录作业
    JS
    js中的DOM操作汇总
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/15179435.html
Copyright © 2011-2022 走看看