logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

es数据库,must和should嵌套使用和分组统计

es数据库,must和should嵌套使用和分组统计"query": {"bool": {"must": [{"bool": {"should": [{"match": {"look_user": "test1"}},{"match": {"userId": "test2"}}]}},{"terms": {"status": 1}},{"match": {"verify": 2}}]

#elasticsearch
es新建索引、表

es新建索引、表由于时间格式有问题,这里自定义时间格式{"settings": {"number_of_shards": "5","number_of_replicas": "1"},"mappings": {"infor": {"properties": {"jzTime": {"type": "date","format": "yyyy-MM-dd-HH-mm-ss||yyyy-MM-dd||

#elasticsearch
到底了