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