@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(groups.length); for (ClusterSearchShardsGroup response : groups) { response.writeTo(out); } out.writeVInt(nodes.length); for (DiscoveryNode node : nodes) { node.writeTo(out); } if (out.getVersion().onOrAfter(Version.V_5_1_1)) { out.writeVInt(indicesAndFilters.size()); for (Map.Entry<String, AliasFilter> entry : indicesAndFilters.entrySet()) { out.writeString(entry.getKey()); entry.getValue().writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeNamedWriteable(query); out.writeVInt(types.length); for (String type : types) { out.writeString(type); } filteringAliases.writeTo(out); out.writeBoolean(explain); out.writeBoolean(rewrite); out.writeVLong(nowInMillis); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(type); out.writeString(id); out.writeOptionalString(routing); out.writeOptionalString(preference); out.writeNamedWriteable(query); filteringAlias.writeTo(out); out.writeOptionalStringArray(storedFields); out.writeOptionalWriteable(fetchSourceContext); out.writeVLong(nowInMillis); }
protected void innerWriteTo(StreamOutput out, boolean asKey) throws IOException { shardId.writeTo(out); out.writeByte(searchType.id()); if (!asKey) { out.writeVInt(numberOfShards); } out.writeOptionalWriteable(scroll); out.writeOptionalWriteable(source); out.writeStringArray(types); aliasFilter.writeTo(out); if (out.getVersion().onOrAfter(Version.V_5_2_0)) { out.writeFloat(indexBoost); } if (asKey == false) { out.writeVLong(nowInMillis); } out.writeOptionalBoolean(requestCache); if (out.getVersion().onOrAfter(Version.V_5_6_0)) { out.writeOptionalString(clusterAlias); } if (out.getVersion().onOrAfter(Version.V_6_3_0)) { out.writeOptionalBoolean(allowPartialSearchResults); } if (asKey == false) { if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeStringArray(indexRoutings); out.writeOptionalString(preference); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(groups.length); for (ClusterSearchShardsGroup response : groups) { response.writeTo(out); } out.writeVInt(nodes.length); for (DiscoveryNode node : nodes) { node.writeTo(out); } if (out.getVersion().onOrAfter(Version.V_5_1_1)) { out.writeVInt(indicesAndFilters.size()); for (Map.Entry<String, AliasFilter> entry : indicesAndFilters.entrySet()) { out.writeString(entry.getKey()); entry.getValue().writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(groups.length); for (ClusterSearchShardsGroup response : groups) { response.writeTo(out); } out.writeVInt(nodes.length); for (DiscoveryNode node : nodes) { node.writeTo(out); } if (out.getVersion().onOrAfter(Version.V_5_1_1)) { out.writeVInt(indicesAndFilters.size()); for (Map.Entry<String, AliasFilter> entry : indicesAndFilters.entrySet()) { out.writeString(entry.getKey()); entry.getValue().writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(groups.length); for (ClusterSearchShardsGroup response : groups) { response.writeTo(out); } out.writeVInt(nodes.length); for (DiscoveryNode node : nodes) { node.writeTo(out); } if (out.getVersion().onOrAfter(Version.V_5_1_1)) { out.writeVInt(indicesAndFilters.size()); for (Map.Entry<String, AliasFilter> entry : indicesAndFilters.entrySet()) { out.writeString(entry.getKey()); entry.getValue().writeTo(out); } } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeNamedWriteable(query); out.writeVInt(types.length); for (String type : types) { out.writeString(type); } filteringAliases.writeTo(out); out.writeBoolean(explain); out.writeBoolean(rewrite); out.writeVLong(nowInMillis); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeNamedWriteable(query); out.writeVInt(types.length); for (String type : types) { out.writeString(type); } filteringAliases.writeTo(out); out.writeBoolean(explain); out.writeBoolean(rewrite); out.writeVLong(nowInMillis); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeNamedWriteable(query); out.writeVInt(types.length); for (String type : types) { out.writeString(type); } filteringAliases.writeTo(out); out.writeBoolean(explain); out.writeBoolean(rewrite); out.writeVLong(nowInMillis); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(type); out.writeString(id); out.writeOptionalString(routing); out.writeOptionalString(preference); out.writeNamedWriteable(query); filteringAlias.writeTo(out); out.writeOptionalStringArray(storedFields); out.writeOptionalWriteable(fetchSourceContext); out.writeVLong(nowInMillis); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(type); out.writeString(id); out.writeOptionalString(routing); out.writeOptionalString(preference); out.writeNamedWriteable(query); filteringAlias.writeTo(out); out.writeOptionalStringArray(storedFields); out.writeOptionalWriteable(fetchSourceContext); out.writeVLong(nowInMillis); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(type); out.writeString(id); out.writeOptionalString(routing); out.writeOptionalString(preference); out.writeNamedWriteable(query); filteringAlias.writeTo(out); out.writeOptionalStringArray(storedFields); out.writeOptionalWriteable(fetchSourceContext); out.writeVLong(nowInMillis); }
out.writeOptionalWriteable(source); out.writeStringArray(types); aliasFilter.writeTo(out); if (out.getVersion().onOrAfter(Version.V_5_2_0)) { out.writeFloat(indexBoost);
protected void innerWriteTo(StreamOutput out, boolean asKey) throws IOException { shardId.writeTo(out); out.writeByte(searchType.id()); if (!asKey) { out.writeVInt(numberOfShards); } out.writeOptionalWriteable(scroll); out.writeOptionalWriteable(source); out.writeStringArray(types); aliasFilter.writeTo(out); if (out.getVersion().onOrAfter(Version.V_5_2_0)) { out.writeFloat(indexBoost); } if (asKey == false) { out.writeVLong(nowInMillis); } out.writeOptionalBoolean(requestCache); if (out.getVersion().onOrAfter(Version.V_5_6_0)) { out.writeOptionalString(clusterAlias); } if (out.getVersion().onOrAfter(Version.V_6_3_0)) { out.writeOptionalBoolean(allowPartialSearchResults); } if (asKey == false) { if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeStringArray(indexRoutings); out.writeOptionalString(preference); } } }
protected void innerWriteTo(StreamOutput out, boolean asKey) throws IOException { shardId.writeTo(out); out.writeByte(searchType.id()); if (!asKey) { out.writeVInt(numberOfShards); } out.writeOptionalWriteable(scroll); out.writeOptionalWriteable(source); out.writeStringArray(types); aliasFilter.writeTo(out); if (out.getVersion().onOrAfter(Version.V_5_2_0)) { out.writeFloat(indexBoost); } if (asKey == false) { out.writeVLong(nowInMillis); } out.writeOptionalBoolean(requestCache); if (out.getVersion().onOrAfter(Version.V_5_6_0)) { out.writeOptionalString(clusterAlias); } if (out.getVersion().onOrAfter(Version.V_6_3_0)) { out.writeOptionalBoolean(allowPartialSearchResults); } if (asKey == false) { if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeStringArray(indexRoutings); out.writeOptionalString(preference); } } }