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:
parent
5847f8379c
commit
6638708b56
|
@ -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;
|
||||
|
|
|
@ -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)));
|
||||
|
|
Loading…
Reference in New Issue