es的多条件查询

需求,查询es中的计算日期的新增和变化的数据

GET /wfs_order_list_index/_doc/_search
{
  "query": 
  {
    "bool": 
    {
      "should": 
      [
        {
        "range": {
          "orderCreateTime": 
          {
            "gte": "2020-05-31 00:00:00",
            "lte": "2020-05-31 23:59:59"
          }
        }
      },
      {
        "range": {
          "orderUpdateTime": 
          {
            "gte": "2020-05-31 00:00:00",
            "lte": "2020-05-31 23:59:59"
          }
        }
      }
    ]
    }
  }
}

https://www.jianshu.com/p/1e970765198c

你可能感兴趣的:(大数据)