From abc8cd6c5f3de70308847b4e21d1bd61417d1789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Tue, 14 Feb 2017 14:01:06 +0100 Subject: [PATCH] Remove unused sourceAsBytes field in SearchHit --- core/src/main/java/org/elasticsearch/search/SearchHit.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/search/SearchHit.java b/core/src/main/java/org/elasticsearch/search/SearchHit.java index 8f8d1a98ed3..cccf8dbed98 100644 --- a/core/src/main/java/org/elasticsearch/search/SearchHit.java +++ b/core/src/main/java/org/elasticsearch/search/SearchHit.java @@ -104,7 +104,6 @@ public final class SearchHit implements Streamable, ToXContentObject, Iterable sourceAsMap; - private byte[] sourceAsBytes; private Map innerHits; @@ -207,7 +206,6 @@ public final class SearchHit implements Streamable, ToXContentObject, Iterablenull if there are none */ - @SuppressWarnings("unchecked") public Map getInnerHits() { - return (Map) innerHits; + return innerHits; } public void setInnerHits(Map innerHits) {