Skip to main content

analysis_schemes

Creates, updates, deletes, gets or lists an analysis_schemes resource.

Overview

Nameanalysis_schemes
TypeResource
Idaws.cloudsearch.analysis_schemes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
optionsstringConfiguration information for an analysis scheme. Each analysis scheme has a unique name and specifies the language of the text to be processed. The following options can be configured for an analysis scheme: Synonyms, Stopwords, StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
statusstringThe status of domain configuration option.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_analysis_schemesselectDomainName, regionAnalysisSchemeNames, DeployedGets the analysis schemes configured for a domain. An analysis scheme defines language-specific text processing options for a text field. Can be limited to specific analysis schemes by name. By default, shows all analysis schemes and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide.
delete_analysis_schemedeleteDomainName, AnalysisSchemeName, regionDeletes an analysis scheme. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AnalysisSchemeNamestringThe name of the analysis scheme you want to delete.
DomainNamestring
regionstringAWS region (default: us-east-1)
AnalysisSchemeNamesarrayThe analysis schemes you want to describe.
DeployedbooleanWhether to display the deployed configuration (true) or include any pending changes (false). Defaults to false.

SELECT examples

Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific text processing options for a text field. Can be limited to specific analysis schemes by name. By default, shows all analysis schemes and includes any pending changes to the configuration. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide.

SELECT
options,
status
FROM aws.cloudsearch.analysis_schemes
WHERE DomainName = '{{ DomainName }}' -- required
AND region = '{{ region }}' -- required
AND AnalysisSchemeNames = '{{ AnalysisSchemeNames }}'
AND Deployed = '{{ Deployed }}'
;

DELETE examples

Deletes an analysis scheme. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide.

DELETE FROM aws.cloudsearch.analysis_schemes
WHERE DomainName = '{{ DomainName }}' --required
AND AnalysisSchemeName = '{{ AnalysisSchemeName }}' --required
AND region = '{{ region }}' --required
;