Remove Getters and Setters for "minimumNumberShouldMatch" in BoolQueryBuilder
The interval value set is "minimumShouldMatch" and also the documented query dsl parameter is `minimum_should_match` so we can deprecate `minimum_number_should_match` and its getters/setters in 5.x and remove them in 6. Original commit: elastic/x-pack-elasticsearch@53ce64b7b3
This commit is contained in:
parent
3532e34aaa
commit
63baf5a86a
|
@ -136,7 +136,7 @@ public class DocumentLevelSecurityTests extends SecurityIntegTestCase {
|
|||
QueryBuilder combined = QueryBuilders.boolQuery()
|
||||
.should(QueryBuilders.termQuery("field2", "value2"))
|
||||
.should(QueryBuilders.termQuery("field1", "value1"))
|
||||
.minimumNumberShouldMatch(1);
|
||||
.minimumShouldMatch(1);
|
||||
response = client().filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user3", USERS_PASSWD)))
|
||||
.prepareSearch("test")
|
||||
.setQuery(randomBoolean() ? combined : QueryBuilders.matchAllQuery())
|
||||
|
|
|
@ -148,7 +148,7 @@ public class ClusterInfoTests extends MonitoringIntegTestCase {
|
|||
.should(QueryBuilders.matchQuery(License.Fields.STATUS, License.Status.INVALID.label()))
|
||||
.should(QueryBuilders.matchQuery(License.Fields.STATUS, License.Status.EXPIRED.label()))
|
||||
.should(QueryBuilders.matchQuery("cluster_name", cluster().getClusterName()))
|
||||
.minimumNumberShouldMatch(1)
|
||||
.minimumShouldMatch(1)
|
||||
).get(), 0L);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue