AnalysisProperty Struct
Custom analysis configuration including analyzers, tokenizers, and filters.
| Source | |
|---|---|
| Type last changed |
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 analysisProperty: opensearchserverless.CfnIndex.AnalysisProperty = {
analyzer: {
analyzerKey: {
charFilter: ['charFilter'],
filter: ['filter'],
tokenizer: 'tokenizer',
type: 'type',
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearchserverless as opensearchserverless
analysis_property = opensearchserverless.CfnIndex.AnalysisProperty(
analyzer={
"analyzer_key": opensearchserverless.CfnIndex.AnalyzerItemsProperty(
char_filter=["charFilter"],
filter=["filter"],
tokenizer="tokenizer",
type="type"
)
}
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchserverless.*;
AnalysisProperty analysisProperty = AnalysisProperty.builder()
.analyzer(Map.of(
"analyzerKey", AnalyzerItemsProperty.builder()
.charFilter(List.of("charFilter"))
.filter(List.of("filter"))
.tokenizer("tokenizer")
.type("type")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearchServerless;
var analysisProperty = new AnalysisProperty {
Analyzer = new Dictionary<string, object> {
{ "analyzerKey", new AnalyzerItemsProperty {
CharFilter = new [] { "charFilter" },
Filter = new [] { "filter" },
Tokenizer = "tokenizer",
Type = "type"
} }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
analysisProperty := &AnalysisProperty{
Analyzer: map[string]interface{}{
"analyzerKey": &AnalyzerItemsProperty{
"charFilter": []*string{
jsii.String("charFilter"),
},
"filter": []*string{
jsii.String("filter"),
},
"tokenizer": jsii.String("tokenizer"),
"type": jsii.String("type"),
},
},
}
Properties
analyzeroptionalIResolvable | { [key: string]: IResolvable | CfnIndex.AnalyzerItemsProperty }analyzeroptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, AnalyzerItemsProperty]]]analyzeroptionalIResolvableAnalyzeroptionalIResolvableAnalyzeroptionalinterface{} #Custom analyzer definitions.