Class KnnSearchRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.KnnSearchRequest
- All Implemented Interfaces:
JsonpSerializable
@Deprecated
@JsonpDeserializable
public class KnnSearchRequest
extends RequestBase
implements JsonpSerializable
Deprecated.
8.4.0
Performs a kNN search.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<KnnSearchRequest>
Deprecated.Json deserializer forKnnSearchRequest
static final SimpleEndpoint<KnnSearchRequest,
?> Deprecated.Endpoint "knn_search
". -
Method Summary
Modifier and TypeMethodDescriptionstatic <TDocument>
Endpoint<KnnSearchRequest,KnnSearchResponse<TDocument>, ErrorResponse> createKnnSearchEndpoint
(JsonpDeserializer<TDocument> tDocumentDeserializer) Deprecated.Create an "knn_search
" endpoint.final List<FieldAndFormat>
Deprecated.The request returns doc values for field names matching these patterns in the hits.fields property of the response.fields()
Deprecated.The request returns values for field names matching these patterns in the hits.fields property of the response.filter()
Deprecated.Query to filter the documents that can match.index()
Deprecated.Required - A comma-separated list of index names to search; use_all
or to perform the operation on all indicesfinal KnnSearchQuery
knn()
Deprecated.Required - kNN query to executestatic KnnSearchRequest
Deprecated.final String
routing()
Deprecated.A comma-separated list of specific routing valuesvoid
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Deprecated.Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Deprecated.protected static void
Deprecated.final SourceConfig
source()
Deprecated.Indicates which source fields are returned for matching documents.Deprecated.List of stored fields to return as part of a hit.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Deprecated.Json deserializer forKnnSearchRequest
-
_ENDPOINT
Deprecated.Endpoint "knn_search
".
-
-
Method Details
-
of
public static KnnSearchRequest of(Function<KnnSearchRequest.Builder, ObjectBuilder<KnnSearchRequest>> fn) Deprecated. -
source
Deprecated.Indicates which source fields are returned for matching documents. These fields are returned in the hits._source property of the search response.API name:
_source
-
docvalueFields
Deprecated.The request returns doc values for field names matching these patterns in the hits.fields property of the response. Accepts wildcard (*) patterns.API name:
docvalue_fields
-
fields
Deprecated.The request returns values for field names matching these patterns in the hits.fields property of the response. Accepts wildcard (*) patterns.API name:
fields
-
filter
Deprecated.Query to filter the documents that can match. The kNN search will return the topk
documents that also match this filter. The value can be a single query or a list of queries. Iffilter
isn't provided, all documents are allowed to match.API name:
filter
-
index
Deprecated.Required - A comma-separated list of index names to search; use_all
or to perform the operation on all indicesAPI name:
index
-
knn
Deprecated.Required - kNN query to executeAPI name:
knn
-
routing
Deprecated.A comma-separated list of specific routing valuesAPI name:
routing
-
storedFields
Deprecated.List of stored fields to return as part of a hit. If no fields are specified, no stored fields are included in the response. If this field is specified, the _source parameter defaults to false. You can pass _source: true to return both source fields and stored fields in the search response.API name:
stored_fields
-
serialize
Deprecated.Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
Deprecated. -
setupKnnSearchRequestDeserializer
protected static void setupKnnSearchRequestDeserializer(ObjectDeserializer<KnnSearchRequest.Builder> op) Deprecated. -
createKnnSearchEndpoint
public static <TDocument> Endpoint<KnnSearchRequest,KnnSearchResponse<TDocument>, createKnnSearchEndpointErrorResponse> (JsonpDeserializer<TDocument> tDocumentDeserializer) Deprecated.Create an "knn_search
" endpoint.
-