@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(field); out.writeVInt(maxConcurrentGroupRequests); if (out.getVersion().onOrAfter(Version.V_5_5_0)) { out.writeList(innerHits); } else { boolean hasInnerHit = innerHits.isEmpty() == false; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHits.get(0).writeToCollapseBWC(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(field); out.writeVInt(maxConcurrentGroupRequests); if (out.getVersion().onOrAfter(Version.V_5_5_0)) { out.writeList(innerHits); } else { boolean hasInnerHit = innerHits.isEmpty() == false; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHits.get(0).writeToCollapseBWC(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(field); out.writeVInt(maxConcurrentGroupRequests); if (out.getVersion().onOrAfter(Version.V_5_5_0)) { out.writeList(innerHits); } else { boolean hasInnerHit = innerHits.isEmpty() == false; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHits.get(0).writeToCollapseBWC(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(field); out.writeVInt(maxConcurrentGroupRequests); if (out.getVersion().onOrAfter(Version.V_5_5_0)) { out.writeList(innerHits); } else { boolean hasInnerHit = innerHits.isEmpty() == false; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHits.get(0).writeToCollapseBWC(out); } } }