#14944 Remove obsolete hasResponseFromRequest method

This commit is contained in:
Michael Stockerl 2016-04-19 20:23:27 +02:00
parent bd17ee8c56
commit addf3bb52d
1 changed files with 0 additions and 4 deletions

View File

@ -932,10 +932,6 @@ public class MoreLikeThisQueryBuilder extends AbstractQueryBuilder<MoreLikeThisQ
return likeFields.toArray(Fields.EMPTY_ARRAY);
}
private static boolean hasResponseFromRequest(MultiTermVectorsItemResponse response, Set<Item> 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<BytesRef> uids = new ArrayList<>();