Module org.elasticsearch.server
Package org.elasticsearch.search.vectors
Interface QueryVectorBuilder
- All Superinterfaces:
NamedWriteable
,ToXContent
,ToXContentObject
,VersionedNamedWriteable
,Writeable
Provides a mechanism for building a KNN query vector in an asynchronous manner during the rewrite phase
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildVector
(Client client, ActionListener<float[]> listener) Method for building a vector via the client.Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
Methods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Method Details
-
buildVector
Method for building a vector via the client. This method is called during RerwiteAndFetch. Typical implementation for this method will: 1. call some asynchronous client action 2. Handle failure/success for that action (usually passing failure to the provided listener) 3. Parse the success case and extract the query vector 4. Pass the extracted query vector to the provided listener- Parameters:
client
- for performing asynchronous actions against the clusterlistener
- listener to accept the created vector
-