Remove unused sourceAsBytes field in SearchHit

This commit is contained in:
Christoph Büscher 2017-02-14 14:01:06 +01:00
parent 70a3ac1767
commit abc8cd6c5f
1 changed files with 1 additions and 4 deletions

View File

@ -104,7 +104,6 @@ public final class SearchHit implements Streamable, ToXContentObject, Iterable<S
private transient String index; private transient String index;
private Map<String, Object> sourceAsMap; private Map<String, Object> sourceAsMap;
private byte[] sourceAsBytes;
private Map<String, SearchHits> innerHits; private Map<String, SearchHits> innerHits;
@ -207,7 +206,6 @@ public final class SearchHit implements Streamable, ToXContentObject, Iterable<S
*/ */
public SearchHit sourceRef(BytesReference source) { public SearchHit sourceRef(BytesReference source) {
this.source = source; this.source = source;
this.sourceAsBytes = null;
this.sourceAsMap = null; this.sourceAsMap = null;
return this; return this;
} }
@ -344,9 +342,8 @@ public final class SearchHit implements Streamable, ToXContentObject, Iterable<S
/** /**
* @return Inner hits or <code>null</code> if there are none * @return Inner hits or <code>null</code> if there are none
*/ */
@SuppressWarnings("unchecked")
public Map<String, SearchHits> getInnerHits() { public Map<String, SearchHits> getInnerHits() {
return (Map) innerHits; return innerHits;
} }
public void setInnerHits(Map<String, SearchHits> innerHits) { public void setInnerHits(Map<String, SearchHits> innerHits) {