Class KnnVectorPropertyDescriptor<T>
Inheritance
KnnVectorPropertyDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class KnnVectorPropertyDescriptor<T> : DocValuesPropertyDescriptorBase<KnnVectorPropertyDescriptor<T>, IKnnVectorProperty, T>, IDescriptor, IKnnVectorProperty, IDocValuesProperty, ICoreProperty, IProperty, IFieldMapping where T : class
Type Parameters
Constructors
|
Edit this page
View Source
KnnVectorPropertyDescriptor()
Declaration
public KnnVectorPropertyDescriptor()
Methods
|
Edit this page
View Source
Dimension(int?)
The dimension of the vector.
Declaration
public KnnVectorPropertyDescriptor<T> Dimension(int? dimension)
Parameters
Type |
Name |
Description |
int? |
dimension |
|
Returns
|
Edit this page
View Source
Method(Func<KnnMethodDescriptor, IKnnMethod>)
The method to use when the underlying Approximate k-NN algorithm does not require training.
Declaration
public KnnVectorPropertyDescriptor<T> Method(Func<KnnMethodDescriptor, IKnnMethod> selector)
Parameters
Returns
|
Edit this page
View Source
ModelId(string)
The model to use when the underlying Approximate k-NN algorithm requires a training step.
Declaration
public KnnVectorPropertyDescriptor<T> ModelId(string modelId)
Parameters
Type |
Name |
Description |
string |
modelId |
|
Returns
Implements
Extension Methods