diff --git a/core/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java b/core/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java index fcda9ae3a8e..5a32fa5085f 100644 --- a/core/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java +++ b/core/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java @@ -932,10 +932,6 @@ public class MoreLikeThisQueryBuilder extends AbstractQueryBuilder selectedItems) { - return selectedItems.contains(new Item(response.getIndex(), response.getType(), response.getId())); - } - private static void handleExclude(BooleanQuery.Builder boolQuery, Item[] likeItems) { // artificial docs get assigned a random id and should be disregarded List uids = new ArrayList<>();