From 562479b5a57838cae1e8c8eb2f0306d8e42ec044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Fri, 7 Dec 2018 11:14:41 +0100 Subject: [PATCH] Remove deprecated methods in MoreLikeThisQueryBuilder (#36340) The ids method is deprecated since 6.0 (at least) and only used in a few tests internally, so we can safely remove it. --- .../index/query/MatchQueryBuilder.java | 9 --------- .../index/query/MoreLikeThisQueryBuilder.java | 15 --------------- .../search/morelikethis/MoreLikeThisIT.java | 4 ++-- .../validate/SimpleValidateQueryIT.java | 5 +++-- 4 files changed, 5 insertions(+), 28 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/index/query/MatchQueryBuilder.java b/server/src/main/java/org/elasticsearch/index/query/MatchQueryBuilder.java index dc2054eda47..32d0fbbb37e 100644 --- a/server/src/main/java/org/elasticsearch/index/query/MatchQueryBuilder.java +++ b/server/src/main/java/org/elasticsearch/index/query/MatchQueryBuilder.java @@ -305,15 +305,6 @@ public class MatchQueryBuilder extends AbstractQueryBuilder { return this.fuzzyTranspositions; } - /** - * Sets whether format based failures will be ignored. - * @deprecated use #lenient() instead - */ - @Deprecated - public MatchQueryBuilder setLenient(boolean lenient) { - return lenient(lenient); - } - /** * Sets whether format based failures will be ignored. */ diff --git a/server/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java b/server/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java index bdd11203b45..6f87ac0fda7 100644 --- a/server/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java +++ b/server/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java @@ -752,21 +752,6 @@ public class MoreLikeThisQueryBuilder extends AbstractQueryBuilder