@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(path); 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.writeToNestedBWC(out, query, path); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(path); 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.writeToNestedBWC(out, query, path); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(path); 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.writeToNestedBWC(out, query, path); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(path); 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.writeToNestedBWC(out, query, path); } } else { out.writeOptionalWriteable(innerHitBuilder); } out.writeBoolean(ignoreUnmapped); }