@Override public void readFrom(StreamInput in) throws IOException { readFrom( in, InternalSearchHits.streamContext() .streamShardTarget(InternalSearchHits.StreamContext.ShardTargetType.STREAM)); }
public static InternalSearchHit readSearchHit( StreamInput in, InternalSearchHits.StreamContext context) throws IOException { InternalSearchHit hit = new InternalSearchHit(); hit.readFrom(in, context); return hit; }