Remove deprecated QueryStringQueryBuilder#splitOnWhiteSpace (#35763)

This parameter has been deprecated and was ignored since 6.0, so its Java API
methods can be removed.
This commit is contained in:
Christoph Büscher 2018-11-21 10:29:08 +01:00 committed by GitHub
parent 5847f8379c
commit 6638708b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 17 deletions

View File

@ -570,22 +570,6 @@ public class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStringQue
return this.escape;
}
/**
* This setting is ignored, this query parser splits on operator only.
*/
@Deprecated
public QueryStringQueryBuilder splitOnWhitespace(boolean value) {
return this;
}
/**
* This setting is ignored, this query parser splits on operator only.
*/
@Deprecated
public boolean splitOnWhitespace() {
return false;
}
public QueryStringQueryBuilder autoGenerateSynonymsPhraseQuery(boolean value) {
this.autoGenerateSynonymsPhraseQuery = value;
return this;

View File

@ -50,7 +50,6 @@ public class QueryStringQuery extends LeafQuery {
appliers.put("lenient", (qb, s) -> qb.lenient(Booleans.parseBoolean(s)));
appliers.put("locale", (qb, s) -> {});
appliers.put("time_zone", (qb, s) -> qb.timeZone(s));
appliers.put("split_on_whitespace", (qb, s) -> qb.splitOnWhitespace(Booleans.parseBoolean(s)));
appliers.put("all_fields", (qb, s) -> qb.useAllFields(Booleans.parseBoolean(s)));
appliers.put("type", (qb, s) -> qb.type(MultiMatchQueryBuilder.Type.parse(s, LoggingDeprecationHandler.INSTANCE)));
appliers.put("auto_generate_synonyms_phrase_query", (qb, s) -> qb.autoGenerateSynonymsPhraseQuery(Booleans.parseBoolean(s)));