大概的代码类似这样:
List<Integer> list = Arrays.asList(25,256,155);
BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery();
queryBuilder.must(QueryBuilders.termsQuery("field1","111"));
//查询满足list集合任意一个条件的数据
list.forEach(x->{[......]
大概的代码类似这样:
List<Integer> list = Arrays.asList(25,256,155);
BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery();
queryBuilder.must(QueryBuilders.termsQuery("field1","111"));
//查询满足list集合任意一个条件的数据
list.forEach(x->{[......]
1 查看所有索引
GET /_cat/indices?v
2 集群状态监控
GET _cluster/health
3 集群某索引的详细统计信息
GET /index-name/_stats
4 查看索引的分片在不同结点之间的分布
GET _cat/shards/索引名
5 索引的统计信息
GET _all/_stats
6 查看索引mapping
GET /index-name/_mapping?pretty
7 给索引mapping添加字段
POST /index-[......]