Class KnnMethodDescriptor
Inheritance
KnnMethodDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class KnnMethodDescriptor : DescriptorBase<KnnMethodDescriptor, IKnnMethod>, IDescriptor, IKnnMethod
Methods
|
Edit this page
View Source
Engine(string)
The approximate k-NN library to use for indexing and search.
Declaration
public KnnMethodDescriptor Engine(string engine)
Parameters
Type |
Name |
Description |
string |
engine |
|
Returns
|
Edit this page
View Source
Name(string)
The identifier for the nearest neighbor method.
Declaration
public KnnMethodDescriptor Name(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
|
Edit this page
View Source
Parameters(Func<KnnMethodParametersDescriptor, IPromise<IKnnMethodParameters>>)
The parameters used for the nearest neighbor method.
Declaration
public KnnMethodDescriptor Parameters(Func<KnnMethodParametersDescriptor, IPromise<IKnnMethodParameters>> selector)
Parameters
Returns
|
Edit this page
View Source
SpaceType(string)
The vector space used to calculate the distance between vectors.
Declaration
public KnnMethodDescriptor SpaceType(string spaceType)
Parameters
Type |
Name |
Description |
string |
spaceType |
|
Returns
Implements
Extension Methods