MethodProperty Struct
Configuration for k-NN search method.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const methodProperty: opensearchserverless.CfnIndex.MethodProperty = {
name: 'name',
// the properties below are optional
engine: 'engine',
parameters: {
efConstruction: 123,
m: 123,
},
spaceType: 'spaceType',
};
Properties
The k-NN search engine to use.
The algorithm name for k-NN search.
parametersoptionalIResolvable | CfnIndex.ParametersPropertyparametersoptionaltyping.Union[IResolvable, ParametersProperty]parametersoptionalIResolvableParametersoptionalIResolvableParametersoptionalinterface{}#Additional parameters for the k-NN algorithm.
spaceTypeoptionalstringspace_typeoptionalstrspaceTypeoptionalStringSpaceTypeoptionalstringSpaceTypeoptional*string#The distance function used for k-NN search.