@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(type); out.writeBoolean(score); out.writeNamedWriteable(query); if (out.getVersion().before(Version.V_5_5_0)) { final boolean hasInnerHit = innerHitBuilder != null; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHitBuilder.writeToParentChildBWC(out, query, type); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(type); out.writeBoolean(score); out.writeNamedWriteable(query); if (out.getVersion().before(Version.V_5_5_0)) { final boolean hasInnerHit = innerHitBuilder != null; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHitBuilder.writeToParentChildBWC(out, query, type); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(type); out.writeBoolean(score); out.writeNamedWriteable(query); if (out.getVersion().before(Version.V_5_5_0)) { final boolean hasInnerHit = innerHitBuilder != null; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHitBuilder.writeToParentChildBWC(out, query, type); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(type); out.writeInt(minChildren); out.writeInt(maxChildren); out.writeVInt(scoreMode.ordinal()); out.writeNamedWriteable(query); if (out.getVersion().before(Version.V_5_5_0)) { final boolean hasInnerHit = innerHitBuilder != null; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHitBuilder.writeToParentChildBWC(out, query, type); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(type); out.writeInt(minChildren); out.writeInt(maxChildren); out.writeVInt(scoreMode.ordinal()); out.writeNamedWriteable(query); if (out.getVersion().before(Version.V_5_5_0)) { final boolean hasInnerHit = innerHitBuilder != null; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHitBuilder.writeToParentChildBWC(out, query, type); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(type); out.writeInt(minChildren); out.writeInt(maxChildren); out.writeVInt(scoreMode.ordinal()); out.writeNamedWriteable(query); if (out.getVersion().before(Version.V_5_5_0)) { final boolean hasInnerHit = innerHitBuilder != null; out.writeBoolean(hasInnerHit); if (hasInnerHit) { innerHitBuilder.writeToParentChildBWC(out, query, type); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }