BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery()
.should(QueryBuilders.termsQuery(ES_FIELD.CATEGORY_ID, categoryIds))
.should(QueryBuilders.termsQuery(ES_FIELD.TAG_TAG_ID, tagIds))
.must(QueryBuilders.termsQuery(ES_FIELD.TAG_CONFIDENT_LEVEL, ConfidentEnum.HIGH.toString(),
ConfidentEnum.MIDDLE.toString()));
return QueryBuilders.boolQuery()
.filter(boolQueryBuilder);
returned 1 warnings: [299 Elasticsearch-6.8.3-0c48c0e "Should clauses in the filter context will no longer automatically set the minimum should match to 1 in the next major version.You should group them in a [filter] clause or explicitly set [minimum_should_match] to 1 to restore this behavior in the next major version."]
请问这是什么意思呢?
1 个回复
zlzlsx
赞同来自: