Class LookupQueryVectorBuilder.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<LookupQueryVectorBuilder.Builder>
co.elastic.clients.elasticsearch._types.LookupQueryVectorBuilder.Builder
- All Implemented Interfaces:
WithJson<LookupQueryVectorBuilder.Builder>,ObjectBuilder<LookupQueryVectorBuilder>
- Enclosing class:
- LookupQueryVectorBuilder
public static class LookupQueryVectorBuilder.Builder
extends WithJsonObjectBuilderBase<LookupQueryVectorBuilder.Builder>
implements ObjectBuilder<LookupQueryVectorBuilder>
Builder for
LookupQueryVectorBuilder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aLookupQueryVectorBuilder.Required - The ID of the document to fetch the vector fromRequired - The name of the index to fetch the document fromRequired - The name of the field containing the vectorThe routing value to use when fetching the documentprotected LookupQueryVectorBuilder.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<LookupQueryVectorBuilder.Builder>
-
build
Builds aLookupQueryVectorBuilder.- Specified by:
buildin interfaceObjectBuilder<LookupQueryVectorBuilder>- Throws:
NullPointerException- if some of the required fields are null.
-