大概的代码类似这样:
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->{[......]