Refine search
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(this.id); out.writeOptionalString(this.relocationId); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalString(format); boolean hasGapPolicy = gapPolicy != null; out.writeBoolean(hasGapPolicy); if (hasGapPolicy) { gapPolicy.writeTo(out); } out.writeOptionalString(units); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(index); out.writeOptionalString(type); out.writeString(id); out.writeOptionalString(routing); out.writeOptionalString(parent); out.writeOptionalStringArray(storedFields); out.writeLong(version); out.writeByte(versionType.getValue()); out.writeOptionalWriteable(fetchSourceContext); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { if (supplier != null) { throw new IllegalStateException("supplier must be null, can't serialize suppliers, missing a rewriteAndFetch?"); } out.writeString(fieldName); boolean hasShape = shape != null; out.writeBoolean(hasShape); if (hasShape) { out.writeNamedWriteable(shape); } else { out.writeOptionalString(indexedShapeId); out.writeOptionalString(indexedShapeType); out.writeOptionalString(indexedShapeIndex); out.writeOptionalString(indexedShapePath); if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeOptionalString(indexedShapeRouting); } else if (indexedShapeRouting != null) { throw new IllegalStateException("indexed shape routing cannot be serialized to older nodes"); } } relation.writeTo(out); out.writeOptionalWriteable(strategy); out.writeBoolean(ignoreUnmapped); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(type); out.writeString(id); out.writeOptionalString(routing); out.writeOptionalString(parent); out.writeOptionalString(preference); out.writeBoolean(refresh); out.writeOptionalStringArray(storedFields); out.writeBoolean(realtime); out.writeByte(versionType.getValue()); out.writeLong(version); out.writeOptionalWriteable(fetchSourceContext); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeStringArrayNullable(indices); indicesOptions.writeIndicesOptions(out); out.writeOptionalString(type); out.writeString(source); out.writeBoolean(updateAllTypes); out.writeOptionalWriteable(concreteIndex); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(indices.length); for (String index : indices) { out.writeString(index); } out.writeOptionalString(routing); out.writeOptionalString(preference); if (out.getVersion().onOrBefore(Version.V_5_1_1)) { //types out.writeStringArray(Strings.EMPTY_ARRAY); } indicesOptions.writeIndicesOptions(out); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeStringArray(text); out.writeOptionalString(analyzer); out.writeOptionalWriteable(tokenizer); out.writeList(tokenFilters); out.writeList(charFilters); out.writeOptionalString(field); out.writeBoolean(explain); out.writeStringArray(attributes); if (out.getVersion().onOrAfter(Version.V_6_0_0_beta1)) { out.writeOptionalString(normalizer); } }
@Override public void writeTo(StreamOutput out) throws IOException { if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeOptionalString(index); } else { out.writeString(index); } if (out.getVersion().onOrAfter(Version.V_5_4_0)) { out.writeInt(shard); } out.writeBoolean(valid); out.writeOptionalString(explanation); out.writeOptionalString(error); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeString(value); out.writeOptionalString(rewrite); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeBoolean(valid); out.writeOptionalString(explanation); out.writeOptionalString(error); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(snapshot); out.writeString(repository); out.writeStringArray(indices); indicesOptions.writeIndicesOptions(out); out.writeOptionalString(renamePattern); out.writeOptionalString(renameReplacement); out.writeBoolean(waitForCompletion); out.writeBoolean(includeGlobalState); out.writeBoolean(partial); out.writeBoolean(includeAliases); writeSettingsToStream(settings, out); writeSettingsToStream(indexSettings, out); out.writeStringArray(ignoreIndexSettings); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeByte(searchType.id()); out.writeVInt(indices.length); for (String index : indices) { out.writeString(index); } out.writeOptionalString(routing); out.writeOptionalString(preference); out.writeOptionalWriteable(scroll); out.writeOptionalWriteable(source); out.writeStringArray(types); indicesOptions.writeIndicesOptions(out); out.writeOptionalBoolean(requestCache); out.writeVInt(batchedReduceSize); if (out.getVersion().onOrAfter(Version.V_5_6_0)) { out.writeVInt(maxConcurrentShardRequests); out.writeVInt(preFilterShardSize); } if (out.getVersion().onOrAfter(Version.V_6_3_0)) { out.writeOptionalBoolean(allowPartialSearchResults); } }
@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 protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(this.fieldName); out.writeGenericValue(this.text); highFreqOperator.writeTo(out); lowFreqOperator.writeTo(out); out.writeOptionalString(analyzer); out.writeOptionalString(lowFreqMinimumShouldMatch); out.writeOptionalString(highFreqMinimumShouldMatch); if (out.getVersion().before(Version.V_6_0_0_alpha1)) { out.writeBoolean(true); // disable_coord } out.writeFloat(cutoffFrequency); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(fieldName); out.writeString(value); out.writeOptionalString(rewrite); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeOptionalString(encoder); out.writeBoolean(useExplicitFieldOrder); out.writeList(fields); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeOptionalString(index); out.writeOptionalString(type); out.writeBoolean(doc != null); if (doc != null) { out.writeGenericValue(doc); if (out.getVersion().onOrAfter(Version.V_5_3_0)) { out.writeEnum(xContentType); } } else { out.writeString(id); } out.writeOptionalStringArray(fields); out.writeGenericValue(perFieldAnalyzer); out.writeOptionalString(routing); out.writeLong(version); versionType.writeTo(out); }
@Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeString(this.fieldName); out.writeGenericValue(this.value); this.fuzziness.writeTo(out); out.writeVInt(this.prefixLength); out.writeVInt(this.maxExpansions); out.writeBoolean(this.transpositions); out.writeOptionalString(this.rewrite); }
@Override public final void writeTo(StreamOutput out) throws IOException { out.writeString(field); out.writeOptionalString(text); out.writeOptionalString(prefix); out.writeOptionalString(regex); out.writeOptionalString(analyzer); out.writeOptionalVInt(size); out.writeOptionalVInt(shardSize); doWriteTo(out); }