• es查询备忘录


    1. es查询

    # 查所有索引
    GET _cat/indices
    # 条件查询
    GET customers_data/_search
    {
      "size": 100,
      "query": {
        "bool": {
          "must": [
            {"terms": {
          "platform.keyword":["政采云-国税"],
          "boost": 1.0}
          }
          ]
        }
        
      }
    }
    
    # 分组统计
    GET customers_data/_search
    {
      "size": 0,
      "aggs": {
              "platform": {
                  "terms": {
                      "field": "platform.keyword",
                      "size": 10000
                  }
              }
          }
      
    }
    
    # 条件删除
    POST customers_data/_delete_by_query
    {
      "query": { 
        "bool": {
          "must": [
            {"terms": {
          "platform.keyword":["国网"],
          "boost": 1.0}
          }
          ]
        }
      }
    }

    2

  • 相关阅读:
    MyCat清单
    Nginx整合Tomcat
    Nginx安装与配置
    Spring清单
    Shiro清单
    Dubbo清单
    MyBatis清单
    查询数据库的编码
    myBatis
    面试
  • 原文地址:https://www.cnblogs.com/JinMuBaoBao/p/11287520.html
Copyright © 2020-2023  润新知