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:
Christoph Büscher 2017-01-02 14:27:11 +01:00
parent 3532e34aaa
commit 63baf5a86a
2 changed files with 2 additions and 2 deletions

View File

@ -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())

View File

@ -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);
}
}