Class KnnSearchRequest.Builder
- All Implemented Interfaces:
WithJson<KnnSearchRequest.Builder>,ObjectBuilder<KnnSearchRequest>
- Enclosing class:
- KnnSearchRequest
KnnSearchRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.Builds aKnnSearchRequest.final KnnSearchRequest.BuilderdocvalueFields(FieldAndFormat value, FieldAndFormat... values) Deprecated.The request returns doc values for field names matching these patterns in the hits.fields property of the response.final KnnSearchRequest.BuilderDeprecated.The request returns doc values for field names matching these patterns in the hits.fields property of the response.final KnnSearchRequest.BuilderdocvalueFields(List<FieldAndFormat> list) Deprecated.The request returns doc values for field names matching these patterns in the hits.fields property of the response.final KnnSearchRequest.BuilderDeprecated.The request returns values for field names matching these patterns in the hits.fields property of the response.final KnnSearchRequest.BuilderDeprecated.The request returns values for field names matching these patterns in the hits.fields property of the response.final KnnSearchRequest.BuilderDeprecated.Query to filter the documents that can match.final KnnSearchRequest.BuilderDeprecated.Query to filter the documents that can match.final KnnSearchRequest.BuilderDeprecated.Query to filter the documents that can match.final KnnSearchRequest.BuilderDeprecated.Required - A comma-separated list of index names to search; use_allor to perform the operation on all indicesfinal KnnSearchRequest.BuilderDeprecated.Required - A comma-separated list of index names to search; use_allor to perform the operation on all indicesfinal KnnSearchRequest.Builderknn(KnnSearchQuery value) Deprecated.Required - kNN query to executefinal KnnSearchRequest.BuilderDeprecated.Required - kNN query to executefinal KnnSearchRequest.BuilderDeprecated.A comma-separated list of specific routing valuesprotected KnnSearchRequest.Builderself()Deprecated.final KnnSearchRequest.Buildersource(SourceConfig value) Deprecated.Indicates which source fields are returned for matching documents.final KnnSearchRequest.BuilderDeprecated.Indicates which source fields are returned for matching documents.final KnnSearchRequest.BuilderstoredFields(String value, String... values) Deprecated.List of stored fields to return as part of a hit.final KnnSearchRequest.BuilderstoredFields(List<String> list) Deprecated.List of stored fields to return as part of a hit.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()Deprecated.
-
-
Method Details
-
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 -
source
public final KnnSearchRequest.Builder source(Function<SourceConfig.Builder, ObjectBuilder<SourceConfig>> fn) 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_fieldsAdds all elements of
listtodocvalueFields. -
docvalueFields
public final KnnSearchRequest.Builder docvalueFields(FieldAndFormat value, FieldAndFormat... values) 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_fieldsAdds one or more values to
docvalueFields. -
docvalueFields
public final KnnSearchRequest.Builder docvalueFields(Function<FieldAndFormat.Builder, ObjectBuilder<FieldAndFormat>> fn) 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_fieldsAdds a value to
docvalueFieldsusing a builder lambda. -
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:
fieldsAdds all elements of
listtofields. -
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:
fieldsAdds one or more values to
fields. -
filter
Deprecated.Query to filter the documents that can match. The kNN search will return the topkdocuments that also match this filter. The value can be a single query or a list of queries. Iffilterisn't provided, all documents are allowed to match.API name:
filterAdds all elements of
listtofilter. -
filter
Deprecated.Query to filter the documents that can match. The kNN search will return the topkdocuments that also match this filter. The value can be a single query or a list of queries. Iffilterisn't provided, all documents are allowed to match.API name:
filterAdds one or more values to
filter. -
filter
Deprecated.Query to filter the documents that can match. The kNN search will return the topkdocuments that also match this filter. The value can be a single query or a list of queries. Iffilterisn't provided, all documents are allowed to match.API name:
filterAdds a value to
filterusing a builder lambda. -
index
Deprecated.Required - A comma-separated list of index names to search; use_allor to perform the operation on all indicesAPI name:
indexAdds all elements of
listtoindex. -
index
Deprecated.Required - A comma-separated list of index names to search; use_allor to perform the operation on all indicesAPI name:
indexAdds one or more values to
index. -
knn
Deprecated.Required - kNN query to executeAPI name:
knn -
knn
public final KnnSearchRequest.Builder knn(Function<KnnSearchQuery.Builder, ObjectBuilder<KnnSearchQuery>> fn) 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_fieldsAdds all elements of
listtostoredFields. -
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_fieldsAdds one or more values to
storedFields. -
self
Deprecated.- Specified by:
selfin classRequestBase.AbstractBuilder<KnnSearchRequest.Builder>
-
build
Deprecated.Builds aKnnSearchRequest.- Specified by:
buildin interfaceObjectBuilder<KnnSearchRequest>- Throws:
NullPointerException- if some of the required fields are null.
-