Class LookupQueryVectorBuilder
java.lang.Object
co.elastic.clients.elasticsearch._types.LookupQueryVectorBuilder
- All Implemented Interfaces:
QueryVectorBuilderVariant,JsonpSerializable
@JsonpDeserializable
public class LookupQueryVectorBuilder
extends Object
implements QueryVectorBuilderVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<LookupQueryVectorBuilder>Json deserializer forLookupQueryVectorBuilder -
Method Summary
Modifier and TypeMethodDescriptionQueryVectorBuilder variant kind.final Stringid()Required - The ID of the document to fetch the vector fromfinal Stringindex()Required - The name of the index to fetch the document fromstatic LookupQueryVectorBuilderfinal Stringpath()Required - The name of the field containing the vectorrebuild()final Stringrouting()The routing value to use when fetching the documentvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.QueryVectorBuilderVariant
_toQueryVectorBuilder
-
Field Details
-
_DESERIALIZER
Json deserializer forLookupQueryVectorBuilder
-
-
Method Details
-
of
public static LookupQueryVectorBuilder of(Function<LookupQueryVectorBuilder.Builder, ObjectBuilder<LookupQueryVectorBuilder>> fn) -
_queryVectorBuilderKind
QueryVectorBuilder variant kind.- Specified by:
_queryVectorBuilderKindin interfaceQueryVectorBuilderVariant
-
id
Required - The ID of the document to fetch the vector fromAPI name:
id -
index
Required - The name of the index to fetch the document fromAPI name:
index -
path
Required - The name of the field containing the vectorAPI name:
path -
routing
The routing value to use when fetching the documentAPI name:
routing -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
LookupQueryVectorBuilder.Builderinitialized with field values of this instance
-
setupLookupQueryVectorBuilderDeserializer
protected static void setupLookupQueryVectorBuilderDeserializer(ObjectDeserializer<LookupQueryVectorBuilder.Builder> op)
-