Interface IKnnQuery
An approximate k-NN query.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IKnnQuery : IFieldNameQuery, IQuery
Properties
| Edit this page View SourceFilter
The result restriction filter query.
Declaration
[DataMember(Name = "filter")]
IQueryContainer Filter { get; set; }
Property Value
Type | Description |
---|---|
IQueryContainer |
K
The number of neighbors the search of each graph will return.
Declaration
[DataMember(Name = "k")]
int? K { get; set; }
Property Value
Type | Description |
---|---|
int? |
Vector
The vector to search for.
Declaration
[DataMember(Name = "vector")]
float[] Vector { get; set; }
Property Value
Type | Description |
---|---|
float[] |