Class KnnQueryDescriptor<T>
Inheritance
KnnQueryDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class KnnQueryDescriptor<T> : FieldNameQueryDescriptorBase<KnnQueryDescriptor<T>, IKnnQuery, T>, IDescriptor, IKnnQuery, IFieldNameQuery, IQuery where T : class
Type Parameters
Properties
|
Edit this page
View Source
Conditionless
Whether the query is conditionless. A conditionless query is not serialized as part of the request
sent to OpenSearch.
Declaration
protected override bool Conditionless { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Filter(Func<QueryContainerDescriptor<T>, QueryContainer>)
The result restriction filter query.
Declaration
public KnnQueryDescriptor<T> Filter(Func<QueryContainerDescriptor<T>, QueryContainer> filterSelector)
Parameters
Returns
|
Edit this page
View Source
K(int?)
The number of neighbors the search of each graph will return.
Declaration
public KnnQueryDescriptor<T> K(int? k)
Parameters
Type |
Name |
Description |
int? |
k |
|
Returns
|
Edit this page
View Source
Vector(params float[])
The vector to search for.
Declaration
public KnnQueryDescriptor<T> Vector(params float[] vector)
Parameters
Type |
Name |
Description |
float[] |
vector |
|
Returns
Implements
Extension Methods