Table of Contents
A low-level client representing Amazon CloudSearch
You use the Amazon CloudSearch configuration service to create, configure, and manage search domains. Configuration service requests are submitted using the AWS Query protocol. AWS Query requests are HTTP or HTTPS requests submitted via HTTP GET or POST with a query parameter named Action.
The endpoint for configuration service requests is region-specific: cloudsearch.*region* .amazonaws.com. For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see Regions and Endpoints .
import boto3
client = boto3.client('cloudsearch')
These are the available methods:
Indexes the search suggestions. For more information, see Configuring Suggesters in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.build_suggesters(
DomainName='string'
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
{
'FieldNames': [
'string',
]
}
Response Structure
The result of a BuildSuggester request. Contains a list of the fields used for suggestions.
A list of field names.
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
Exceptions
Check if an operation can be paginated.
Creates a new search domain. For more information, see Creating a Search Domain in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.create_domain(
DomainName='string'
)
[REQUIRED]
A name for the domain you are creating. Allowed characters are a-z (lower-case letters), 0-9, and hyphen (-). Domain names must start with a letter or number and be at least 3 and no more than 28 characters long.
{
'DomainStatus': {
'DomainId': 'string',
'DomainName': 'string',
'ARN': 'string',
'Created': True|False,
'Deleted': True|False,
'DocService': {
'Endpoint': 'string'
},
'SearchService': {
'Endpoint': 'string'
},
'RequiresIndexDocuments': True|False,
'Processing': True|False,
'SearchInstanceType': 'string',
'SearchPartitionCount': 123,
'SearchInstanceCount': 123,
'Limits': {
'MaximumReplicationCount': 123,
'MaximumPartitionCount': 123
}
}
}
Response Structure
The result of a CreateDomainRequest . Contains the status of a newly created domain.
The current status of the search domain.
An internally generated unique identifier for a domain.
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.
The service endpoint for updating documents in a search domain.
The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com .
The service endpoint for requesting search results from a search domain.
The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com .
True if IndexDocuments needs to be called to activate the current domain configuration.
True if processing is being done to activate the current domain configuration.
The instance type that is being used to process search requests.
The number of partitions across which the search index is spread.
The number of search instances that are available to process search requests.
Exceptions
Configures an analysis scheme that can be applied to a text or text-array field to define language-specific text processing options. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.define_analysis_scheme(
DomainName='string',
AnalysisScheme={
'AnalysisSchemeName': 'string',
'AnalysisSchemeLanguage': 'ar'|'bg'|'ca'|'cs'|'da'|'de'|'el'|'en'|'es'|'eu'|'fa'|'fi'|'fr'|'ga'|'gl'|'he'|'hi'|'hu'|'hy'|'id'|'it'|'ja'|'ko'|'lv'|'mul'|'nl'|'no'|'pt'|'ro'|'ru'|'sv'|'th'|'tr'|'zh-Hans'|'zh-Hant',
'AnalysisOptions': {
'Synonyms': 'string',
'Stopwords': 'string',
'StemmingDictionary': 'string',
'JapaneseTokenizationDictionary': 'string',
'AlgorithmicStemming': 'none'|'minimal'|'light'|'full'
}
}
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
Configuration 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 .
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
An IETF RFC 4646 language code or mul for multiple languages.
Synonyms, stopwords, and stemming options for an analysis scheme. Includes tokenization dictionary for Japanese.
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide .
A JSON array of terms to ignore during indexing and searching. For example, ["a", "an", "the", "of"] . The stopwords dictionary must explicitly list each word you want to ignore. Wildcards and regular expressions are not supported.
A JSON object that contains a collection of string:value pairs that each map a term to its stem. For example, {"term1": "stem1", "term2": "stem2", "term3": "stem3"} . The stemming dictionary is applied in addition to any algorithmic stemming. This enables you to override the results of the algorithmic stemming to correct specific cases of overstemming or understemming. The maximum size of a stemming dictionary is 500 KB.
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
The level of algorithmic stemming to perform: none , minimal , light , or full . The available levels vary depending on the language. For more information, see Language Specific Text Processing Settings in the Amazon CloudSearch Developer Guide
dict
Response Syntax
{
'AnalysisScheme': {
'Options': {
'AnalysisSchemeName': 'string',
'AnalysisSchemeLanguage': 'ar'|'bg'|'ca'|'cs'|'da'|'de'|'el'|'en'|'es'|'eu'|'fa'|'fi'|'fr'|'ga'|'gl'|'he'|'hi'|'hu'|'hy'|'id'|'it'|'ja'|'ko'|'lv'|'mul'|'nl'|'no'|'pt'|'ro'|'ru'|'sv'|'th'|'tr'|'zh-Hans'|'zh-Hant',
'AnalysisOptions': {
'Synonyms': 'string',
'Stopwords': 'string',
'StemmingDictionary': 'string',
'JapaneseTokenizationDictionary': 'string',
'AlgorithmicStemming': 'none'|'minimal'|'light'|'full'
}
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a `` DefineAnalysisScheme`` request. Contains the status of the newly-configured analysis scheme.
AnalysisScheme (dict) --
The status and configuration of an AnalysisScheme .
Options (dict) --
Configuration 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 .
AnalysisSchemeName (string) --
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
AnalysisSchemeLanguage (string) --
An IETF RFC 4646 language code or mul for multiple languages.
AnalysisOptions (dict) --
Synonyms, stopwords, and stemming options for an analysis scheme. Includes tokenization dictionary for Japanese.
Synonyms (string) --
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide .
Stopwords (string) --
A JSON array of terms to ignore during indexing and searching. For example, ["a", "an", "the", "of"] . The stopwords dictionary must explicitly list each word you want to ignore. Wildcards and regular expressions are not supported.
StemmingDictionary (string) --
A JSON object that contains a collection of string:value pairs that each map a term to its stem. For example, {"term1": "stem1", "term2": "stem2", "term3": "stem3"} . The stemming dictionary is applied in addition to any algorithmic stemming. This enables you to override the results of the algorithmic stemming to correct specific cases of overstemming or understemming. The maximum size of a stemming dictionary is 500 KB.
JapaneseTokenizationDictionary (string) --
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
AlgorithmicStemming (string) --
The level of algorithmic stemming to perform: none , minimal , light , or full . The available levels vary depending on the language. For more information, see Language Specific Text Processing Settings in the Amazon CloudSearch Developer Guide
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Configures an `` Expression`` for the search domain. Used to create new expressions and modify existing ones. If the expression exists, the new configuration replaces the old one. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.define_expression(
DomainName='string',
Expression={
'ExpressionName': 'string',
'ExpressionValue': 'string'
}
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
A named expression that can be evaluated at search time. Can be used to sort the search results, define other expressions, or return computed information in the search results.
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .
dict
Response Syntax
{
'Expression': {
'Options': {
'ExpressionName': 'string',
'ExpressionValue': 'string'
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a DefineExpression request. Contains the status of the newly-configured expression.
Expression (dict) --
The value of an Expression and its current status.
Options (dict) --
The expression that is evaluated for sorting while processing a search request.
ExpressionName (string) --
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
ExpressionValue (string) --
The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Configures an `` IndexField`` for the search domain. Used to create new fields and modify existing ones. You must specify the name of the domain you are configuring and an index field configuration. The index field configuration specifies a unique name, the index field type, and the options you want to configure for the field. The options you can specify depend on the `` IndexFieldType`` . If the field exists, the new configuration replaces the old one. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.define_index_field(
DomainName='string',
IndexField={
'IndexFieldName': 'string',
'IndexFieldType': 'int'|'double'|'literal'|'text'|'date'|'latlon'|'int-array'|'double-array'|'literal-array'|'text-array'|'date-array',
'IntOptions': {
'DefaultValue': 123,
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'DoubleOptions': {
'DefaultValue': 123.0,
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'LiteralOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'TextOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'ReturnEnabled': True|False,
'SortEnabled': True|False,
'HighlightEnabled': True|False,
'AnalysisScheme': 'string'
},
'DateOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'LatLonOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'IntArrayOptions': {
'DefaultValue': 123,
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'DoubleArrayOptions': {
'DefaultValue': 123.0,
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'LiteralArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'TextArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'ReturnEnabled': True|False,
'HighlightEnabled': True|False,
'AnalysisScheme': 'string'
},
'DateArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
}
}
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
The index field and field options you want to configure.
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int . All options are enabled by default.
The name of the source field to map to the field.
Whether facet information can be returned for the field.
Whether the contents of the field are searchable.
Whether the contents of the field can be returned in the search results.
Whether the field can be used to sort the search results.
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double . All options are enabled by default.
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
The name of the source field to map to the field.
Whether facet information can be returned for the field.
Whether the contents of the field are searchable.
Whether the contents of the field can be returned in the search results.
Whether the field can be used to sort the search results.
Options for literal field. Present if IndexFieldType specifies the field is of type literal . All options are enabled by default.
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
Whether facet information can be returned for the field.
Whether the contents of the field are searchable.
Whether the contents of the field can be returned in the search results.
Whether the field can be used to sort the search results.
Options for text field. Present if IndexFieldType specifies the field is of type text . A text field is always searchable. All options are enabled by default.
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
Whether the contents of the field can be returned in the search results.
Whether the field can be used to sort the search results.
Whether highlights can be returned for the field.
The name of an analysis scheme for a text field.
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date . All options are enabled by default.
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
Whether facet information can be returned for the field.
Whether the contents of the field are searchable.
Whether the contents of the field can be returned in the search results.
Whether the field can be used to sort the search results.
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon . All options are enabled by default.
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
Whether facet information can be returned for the field.
Whether the contents of the field are searchable.
Whether the contents of the field can be returned in the search results.
Whether the field can be used to sort the search results.
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array . All options are enabled by default.
A list of source fields to map to the field.
Whether facet information can be returned for the field.
Whether the contents of the field are searchable.
Whether the contents of the field can be returned in the search results.
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array . All options are enabled by default.
A list of source fields to map to the field.
Whether facet information can be returned for the field.
Whether the contents of the field are searchable.
Whether the contents of the field can be returned in the search results.
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array . All options are enabled by default.
A list of source fields to map to the field.
Whether facet information can be returned for the field.
Whether the contents of the field are searchable.
Whether the contents of the field can be returned in the search results.
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array . A text-array field is always searchable. All options are enabled by default.
A list of source fields to map to the field.
Whether the contents of the field can be returned in the search results.
Whether highlights can be returned for the field.
The name of an analysis scheme for a text-array field.
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array . All options are enabled by default.
A list of source fields to map to the field.
Whether facet information can be returned for the field.
Whether the contents of the field are searchable.
Whether the contents of the field can be returned in the search results.
dict
Response Syntax
{
'IndexField': {
'Options': {
'IndexFieldName': 'string',
'IndexFieldType': 'int'|'double'|'literal'|'text'|'date'|'latlon'|'int-array'|'double-array'|'literal-array'|'text-array'|'date-array',
'IntOptions': {
'DefaultValue': 123,
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'DoubleOptions': {
'DefaultValue': 123.0,
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'LiteralOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'TextOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'ReturnEnabled': True|False,
'SortEnabled': True|False,
'HighlightEnabled': True|False,
'AnalysisScheme': 'string'
},
'DateOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'LatLonOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'IntArrayOptions': {
'DefaultValue': 123,
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'DoubleArrayOptions': {
'DefaultValue': 123.0,
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'LiteralArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'TextArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'ReturnEnabled': True|False,
'HighlightEnabled': True|False,
'AnalysisScheme': 'string'
},
'DateArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
}
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a `` DefineIndexField`` request. Contains the status of the newly-configured index field.
IndexField (dict) --
The value of an IndexField and its current status.
Options (dict) --
Configuration information for a field in the index, including its name, type, and options. The supported options depend on the `` IndexFieldType`` .
IndexFieldName (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
IndexFieldType (string) --
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .
IntOptions (dict) --
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int . All options are enabled by default.
DefaultValue (integer) -- A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
SourceField (string) --
The name of the source field to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
DoubleOptions (dict) --
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double . All options are enabled by default.
DefaultValue (float) --
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
SourceField (string) --
The name of the source field to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
LiteralOptions (dict) --
Options for literal field. Present if IndexFieldType specifies the field is of type literal . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
TextOptions (dict) --
Options for text field. Present if IndexFieldType specifies the field is of type text . A text field is always searchable. All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
HighlightEnabled (boolean) --
Whether highlights can be returned for the field.
AnalysisScheme (string) --
The name of an analysis scheme for a text field.
DateOptions (dict) --
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
LatLonOptions (dict) --
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
IntArrayOptions (dict) --
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array . All options are enabled by default.
DefaultValue (integer) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
DoubleArrayOptions (dict) --
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array . All options are enabled by default.
DefaultValue (float) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
LiteralArrayOptions (dict) --
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
TextArrayOptions (dict) --
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array . A text-array field is always searchable. All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
HighlightEnabled (boolean) --
Whether highlights can be returned for the field.
AnalysisScheme (string) --
The name of an analysis scheme for a text-array field.
DateArrayOptions (dict) --
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Configures a suggester for a domain. A suggester enables you to display possible matches before users finish typing their queries. When you configure a suggester, you must specify the name of the text field you want to search for possible matches and a unique name for the suggester. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.define_suggester(
DomainName='string',
Suggester={
'SuggesterName': 'string',
'DocumentSuggesterOptions': {
'SourceField': 'string',
'FuzzyMatching': 'none'|'low'|'high',
'SortExpression': 'string'
}
}
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
Configuration information for a search suggester. Each suggester has a unique name and specifies the text field you want to use for suggestions. The following options can be configured for a suggester: FuzzyMatching , SortExpression .
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
Options for a search suggester.
The name of the index field you want to use for suggestions.
The level of fuzziness allowed when suggesting matches for a string: none , low , or high . With none, the specified string is treated as an exact prefix. With low, suggestions must differ from the specified string by no more than one character. With high, suggestions can differ by up to two characters. The default is none.
An expression that computes a score for each suggestion to control how they are sorted. The scores are rounded to the nearest integer, with a floor of 0 and a ceiling of 2^31-1. A document's relevance score is not computed for suggestions, so sort expressions cannot reference the _score value. To sort suggestions using a numeric field or existing expression, simply specify the name of the field or expression. If no expression is configured for the suggester, the suggestions are sorted with the closest matches listed first.
dict
Response Syntax
{
'Suggester': {
'Options': {
'SuggesterName': 'string',
'DocumentSuggesterOptions': {
'SourceField': 'string',
'FuzzyMatching': 'none'|'low'|'high',
'SortExpression': 'string'
}
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a DefineSuggester request. Contains the status of the newly-configured suggester.
Suggester (dict) --
The value of a Suggester and its current status.
Options (dict) --
Configuration information for a search suggester. Each suggester has a unique name and specifies the text field you want to use for suggestions. The following options can be configured for a suggester: FuzzyMatching , SortExpression .
SuggesterName (string) --
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
DocumentSuggesterOptions (dict) --
Options for a search suggester.
SourceField (string) --
The name of the index field you want to use for suggestions.
FuzzyMatching (string) --
The level of fuzziness allowed when suggesting matches for a string: none , low , or high . With none, the specified string is treated as an exact prefix. With low, suggestions must differ from the specified string by no more than one character. With high, suggestions can differ by up to two characters. The default is none.
SortExpression (string) --
An expression that computes a score for each suggestion to control how they are sorted. The scores are rounded to the nearest integer, with a floor of 0 and a ceiling of 2^31-1. A document's relevance score is not computed for suggestions, so sort expressions cannot reference the _score value. To sort suggestions using a numeric field or existing expression, simply specify the name of the field or expression. If no expression is configured for the suggester, the suggestions are sorted with the closest matches listed first.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Deletes an analysis scheme. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.delete_analysis_scheme(
DomainName='string',
AnalysisSchemeName='string'
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
The name of the analysis scheme you want to delete.
dict
Response Syntax
{
'AnalysisScheme': {
'Options': {
'AnalysisSchemeName': 'string',
'AnalysisSchemeLanguage': 'ar'|'bg'|'ca'|'cs'|'da'|'de'|'el'|'en'|'es'|'eu'|'fa'|'fi'|'fr'|'ga'|'gl'|'he'|'hi'|'hu'|'hy'|'id'|'it'|'ja'|'ko'|'lv'|'mul'|'nl'|'no'|'pt'|'ro'|'ru'|'sv'|'th'|'tr'|'zh-Hans'|'zh-Hant',
'AnalysisOptions': {
'Synonyms': 'string',
'Stopwords': 'string',
'StemmingDictionary': 'string',
'JapaneseTokenizationDictionary': 'string',
'AlgorithmicStemming': 'none'|'minimal'|'light'|'full'
}
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a DeleteAnalysisScheme request. Contains the status of the deleted analysis scheme.
AnalysisScheme (dict) --
The status of the analysis scheme being deleted.
Options (dict) --
Configuration 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 .
AnalysisSchemeName (string) --
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
AnalysisSchemeLanguage (string) --
An IETF RFC 4646 language code or mul for multiple languages.
AnalysisOptions (dict) --
Synonyms, stopwords, and stemming options for an analysis scheme. Includes tokenization dictionary for Japanese.
Synonyms (string) --
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide .
Stopwords (string) --
A JSON array of terms to ignore during indexing and searching. For example, ["a", "an", "the", "of"] . The stopwords dictionary must explicitly list each word you want to ignore. Wildcards and regular expressions are not supported.
StemmingDictionary (string) --
A JSON object that contains a collection of string:value pairs that each map a term to its stem. For example, {"term1": "stem1", "term2": "stem2", "term3": "stem3"} . The stemming dictionary is applied in addition to any algorithmic stemming. This enables you to override the results of the algorithmic stemming to correct specific cases of overstemming or understemming. The maximum size of a stemming dictionary is 500 KB.
JapaneseTokenizationDictionary (string) --
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
AlgorithmicStemming (string) --
The level of algorithmic stemming to perform: none , minimal , light , or full . The available levels vary depending on the language. For more information, see Language Specific Text Processing Settings in the Amazon CloudSearch Developer Guide
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Permanently deletes a search domain and all of its data. Once a domain has been deleted, it cannot be recovered. For more information, see Deleting a Search Domain in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.delete_domain(
DomainName='string'
)
[REQUIRED]
The name of the domain you want to permanently delete.
{
'DomainStatus': {
'DomainId': 'string',
'DomainName': 'string',
'ARN': 'string',
'Created': True|False,
'Deleted': True|False,
'DocService': {
'Endpoint': 'string'
},
'SearchService': {
'Endpoint': 'string'
},
'RequiresIndexDocuments': True|False,
'Processing': True|False,
'SearchInstanceType': 'string',
'SearchPartitionCount': 123,
'SearchInstanceCount': 123,
'Limits': {
'MaximumReplicationCount': 123,
'MaximumPartitionCount': 123
}
}
}
Response Structure
The result of a DeleteDomain request. Contains the status of a newly deleted domain, or no status if the domain has already been completely deleted.
The current status of the search domain.
An internally generated unique identifier for a domain.
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.
The service endpoint for updating documents in a search domain.
The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com .
The service endpoint for requesting search results from a search domain.
The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com .
True if IndexDocuments needs to be called to activate the current domain configuration.
True if processing is being done to activate the current domain configuration.
The instance type that is being used to process search requests.
The number of partitions across which the search index is spread.
The number of search instances that are available to process search requests.
Exceptions
Removes an `` Expression`` from the search domain. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.delete_expression(
DomainName='string',
ExpressionName='string'
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
The name of the `` Expression`` to delete.
dict
Response Syntax
{
'Expression': {
'Options': {
'ExpressionName': 'string',
'ExpressionValue': 'string'
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a `` DeleteExpression`` request. Specifies the expression being deleted.
Expression (dict) --
The status of the expression being deleted.
Options (dict) --
The expression that is evaluated for sorting while processing a search request.
ExpressionName (string) --
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
ExpressionValue (string) --
The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Removes an `` IndexField`` from the search domain. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.delete_index_field(
DomainName='string',
IndexFieldName='string'
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
The name of the index field your want to remove from the domain's indexing options.
dict
Response Syntax
{
'IndexField': {
'Options': {
'IndexFieldName': 'string',
'IndexFieldType': 'int'|'double'|'literal'|'text'|'date'|'latlon'|'int-array'|'double-array'|'literal-array'|'text-array'|'date-array',
'IntOptions': {
'DefaultValue': 123,
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'DoubleOptions': {
'DefaultValue': 123.0,
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'LiteralOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'TextOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'ReturnEnabled': True|False,
'SortEnabled': True|False,
'HighlightEnabled': True|False,
'AnalysisScheme': 'string'
},
'DateOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'LatLonOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'IntArrayOptions': {
'DefaultValue': 123,
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'DoubleArrayOptions': {
'DefaultValue': 123.0,
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'LiteralArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'TextArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'ReturnEnabled': True|False,
'HighlightEnabled': True|False,
'AnalysisScheme': 'string'
},
'DateArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
}
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a `` DeleteIndexField`` request.
IndexField (dict) --
The status of the index field being deleted.
Options (dict) --
Configuration information for a field in the index, including its name, type, and options. The supported options depend on the `` IndexFieldType`` .
IndexFieldName (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
IndexFieldType (string) --
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .
IntOptions (dict) --
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int . All options are enabled by default.
DefaultValue (integer) -- A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
SourceField (string) --
The name of the source field to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
DoubleOptions (dict) --
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double . All options are enabled by default.
DefaultValue (float) --
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
SourceField (string) --
The name of the source field to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
LiteralOptions (dict) --
Options for literal field. Present if IndexFieldType specifies the field is of type literal . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
TextOptions (dict) --
Options for text field. Present if IndexFieldType specifies the field is of type text . A text field is always searchable. All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
HighlightEnabled (boolean) --
Whether highlights can be returned for the field.
AnalysisScheme (string) --
The name of an analysis scheme for a text field.
DateOptions (dict) --
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
LatLonOptions (dict) --
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
IntArrayOptions (dict) --
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array . All options are enabled by default.
DefaultValue (integer) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
DoubleArrayOptions (dict) --
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array . All options are enabled by default.
DefaultValue (float) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
LiteralArrayOptions (dict) --
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
TextArrayOptions (dict) --
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array . A text-array field is always searchable. All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
HighlightEnabled (boolean) --
Whether highlights can be returned for the field.
AnalysisScheme (string) --
The name of an analysis scheme for a text-array field.
DateArrayOptions (dict) --
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Deletes a suggester. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.delete_suggester(
DomainName='string',
SuggesterName='string'
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
Specifies the name of the suggester you want to delete.
dict
Response Syntax
{
'Suggester': {
'Options': {
'SuggesterName': 'string',
'DocumentSuggesterOptions': {
'SourceField': 'string',
'FuzzyMatching': 'none'|'low'|'high',
'SortExpression': 'string'
}
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a DeleteSuggester request. Contains the status of the deleted suggester.
Suggester (dict) --
The status of the suggester being deleted.
Options (dict) --
Configuration information for a search suggester. Each suggester has a unique name and specifies the text field you want to use for suggestions. The following options can be configured for a suggester: FuzzyMatching , SortExpression .
SuggesterName (string) --
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
DocumentSuggesterOptions (dict) --
Options for a search suggester.
SourceField (string) --
The name of the index field you want to use for suggestions.
FuzzyMatching (string) --
The level of fuzziness allowed when suggesting matches for a string: none , low , or high . With none, the specified string is treated as an exact prefix. With low, suggestions must differ from the specified string by no more than one character. With high, suggestions can differ by up to two characters. The default is none.
SortExpression (string) --
An expression that computes a score for each suggestion to control how they are sorted. The scores are rounded to the nearest integer, with a floor of 0 and a ceiling of 2^31-1. A document's relevance score is not computed for suggestions, so sort expressions cannot reference the _score value. To sort suggestions using a numeric field or existing expression, simply specify the name of the field or expression. If no expression is configured for the suggester, the suggestions are sorted with the closest matches listed first.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
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 .
See also: AWS API Documentation
Request Syntax
response = client.describe_analysis_schemes(
DomainName='string',
AnalysisSchemeNames=[
'string',
],
Deployed=True|False
)
[REQUIRED]
The name of the domain you want to describe.
The analysis schemes you want to describe.
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
dict
Response Syntax
{
'AnalysisSchemes': [
{
'Options': {
'AnalysisSchemeName': 'string',
'AnalysisSchemeLanguage': 'ar'|'bg'|'ca'|'cs'|'da'|'de'|'el'|'en'|'es'|'eu'|'fa'|'fi'|'fr'|'ga'|'gl'|'he'|'hi'|'hu'|'hy'|'id'|'it'|'ja'|'ko'|'lv'|'mul'|'nl'|'no'|'pt'|'ro'|'ru'|'sv'|'th'|'tr'|'zh-Hans'|'zh-Hant',
'AnalysisOptions': {
'Synonyms': 'string',
'Stopwords': 'string',
'StemmingDictionary': 'string',
'JapaneseTokenizationDictionary': 'string',
'AlgorithmicStemming': 'none'|'minimal'|'light'|'full'
}
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
},
]
}
Response Structure
(dict) --
The result of a DescribeAnalysisSchemes request. Contains the analysis schemes configured for the domain specified in the request.
AnalysisSchemes (list) --
The analysis scheme descriptions.
(dict) --
The status and configuration of an AnalysisScheme .
Options (dict) --
Configuration 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 .
AnalysisSchemeName (string) --
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
AnalysisSchemeLanguage (string) --
An IETF RFC 4646 language code or mul for multiple languages.
AnalysisOptions (dict) --
Synonyms, stopwords, and stemming options for an analysis scheme. Includes tokenization dictionary for Japanese.
Synonyms (string) --
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each sub-array is a group of terms where each term in the group is considered a synonym of every other term in the group. The aliases value is an object that contains a collection of string:value pairs where the string specifies a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of the specified term, but the term is not considered a synonym of the alias. For more information about specifying synonyms, see Synonyms in the Amazon CloudSearch Developer Guide .
Stopwords (string) --
A JSON array of terms to ignore during indexing and searching. For example, ["a", "an", "the", "of"] . The stopwords dictionary must explicitly list each word you want to ignore. Wildcards and regular expressions are not supported.
StemmingDictionary (string) --
A JSON object that contains a collection of string:value pairs that each map a term to its stem. For example, {"term1": "stem1", "term2": "stem2", "term3": "stem3"} . The stemming dictionary is applied in addition to any algorithmic stemming. This enables you to override the results of the algorithmic stemming to correct specific cases of overstemming or understemming. The maximum size of a stemming dictionary is 500 KB.
JapaneseTokenizationDictionary (string) --
A JSON array that contains a collection of terms, tokens, readings and part of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary enables you to override the default tokenization for selected terms. This is only valid for Japanese language fields.
AlgorithmicStemming (string) --
The level of algorithmic stemming to perform: none , minimal , light , or full . The available levels vary depending on the language. For more information, see Language Specific Text Processing Settings in the Amazon CloudSearch Developer Guide
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Gets the availability options configured for a domain. By default, shows the configuration with any pending changes. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Availability Options in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_availability_options(
DomainName='string',
Deployed=True|False
)
[REQUIRED]
The name of the domain you want to describe.
dict
Response Syntax
{
'AvailabilityOptions': {
'Options': True|False,
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a DescribeAvailabilityOptions request. Indicates whether or not the Multi-AZ option is enabled for the domain specified in the request.
AvailabilityOptions (dict) --
The availability options configured for the domain. Indicates whether Multi-AZ is enabled for the domain.
Options (boolean) --
The availability options configured for the domain.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Returns the domain's endpoint options, specifically whether all requests to the domain must arrive over HTTPS. For more information, see Configuring Domain Endpoint Options in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_domain_endpoint_options(
DomainName='string',
Deployed=True|False
)
[REQUIRED]
A string that represents the name of a domain.
dict
Response Syntax
{
'DomainEndpointOptions': {
'Options': {
'EnforceHTTPS': True|False,
'TLSSecurityPolicy': 'Policy-Min-TLS-1-0-2019-07'|'Policy-Min-TLS-1-2-2019-07'
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a DescribeDomainEndpointOptions request. Contains the status and configuration of a search domain's endpoint options.
DomainEndpointOptions (dict) --
The status and configuration of a search domain's endpoint options.
Options (dict) --
The domain endpoint options configured for the domain.
EnforceHTTPS (boolean) --
Whether the domain is HTTPS only enabled.
TLSSecurityPolicy (string) --
The minimum required TLS version
Status (dict) --
The status of the configured domain endpoint options.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Gets information about the search domains owned by this account. Can be limited to specific domains. Shows all domains by default. To get the number of searchable documents in a domain, use the console or submit a matchall request to your domain's search endpoint: q=matchall&q.parser=structured&size=0 . For more information, see Getting Information about a Search Domain in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_domains(
DomainNames=[
'string',
]
)
The names of the domains you want to include in the response.
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
{
'DomainStatusList': [
{
'DomainId': 'string',
'DomainName': 'string',
'ARN': 'string',
'Created': True|False,
'Deleted': True|False,
'DocService': {
'Endpoint': 'string'
},
'SearchService': {
'Endpoint': 'string'
},
'RequiresIndexDocuments': True|False,
'Processing': True|False,
'SearchInstanceType': 'string',
'SearchPartitionCount': 123,
'SearchInstanceCount': 123,
'Limits': {
'MaximumReplicationCount': 123,
'MaximumPartitionCount': 123
}
},
]
}
Response Structure
The result of a DescribeDomains request. Contains the status of the domains specified in the request or all domains owned by the account.
A list that contains the status of each requested domain.
The current status of the search domain.
An internally generated unique identifier for a domain.
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
The Amazon Resource Name (ARN) of the search domain. See Identifiers for IAM Entities in Using AWS Identity and Access Management for more information.
True if the search domain is created. It can take several minutes to initialize a domain when CreateDomain is called. Newly created search domains are returned from DescribeDomains with a false value for Created until domain creation is complete.
True if the search domain has been deleted. The system must clean up resources dedicated to the search domain when DeleteDomain is called. Newly deleted search domains are returned from DescribeDomains with a true value for IsDeleted for several minutes until resource cleanup is complete.
The service endpoint for updating documents in a search domain.
The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com .
The service endpoint for requesting search results from a search domain.
The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com .
True if IndexDocuments needs to be called to activate the current domain configuration.
True if processing is being done to activate the current domain configuration.
The instance type that is being used to process search requests.
The number of partitions across which the search index is spread.
The number of search instances that are available to process search requests.
Exceptions
Gets the expressions configured for the search domain. Can be limited to specific expressions by name. By default, shows all expressions 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 Expressions in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_expressions(
DomainName='string',
ExpressionNames=[
'string',
],
Deployed=True|False
)
[REQUIRED]
The name of the domain you want to describe.
Limits the `` DescribeExpressions`` response to the specified expressions. If not specified, all expressions are shown.
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
dict
Response Syntax
{
'Expressions': [
{
'Options': {
'ExpressionName': 'string',
'ExpressionValue': 'string'
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
},
]
}
Response Structure
(dict) --
The result of a DescribeExpressions request. Contains the expressions configured for the domain specified in the request.
Expressions (list) --
The expressions configured for the domain.
(dict) --
The value of an Expression and its current status.
Options (dict) --
The expression that is evaluated for sorting while processing a search request.
ExpressionName (string) --
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
ExpressionValue (string) --
The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide .
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Gets information about the index fields configured for the search domain. Can be limited to specific fields by name. By default, shows all fields 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 Getting Domain Information in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_index_fields(
DomainName='string',
FieldNames=[
'string',
],
Deployed=True|False
)
[REQUIRED]
The name of the domain you want to describe.
A list of the index fields you want to describe. If not specified, information is returned for all configured index fields.
dict
Response Syntax
{
'IndexFields': [
{
'Options': {
'IndexFieldName': 'string',
'IndexFieldType': 'int'|'double'|'literal'|'text'|'date'|'latlon'|'int-array'|'double-array'|'literal-array'|'text-array'|'date-array',
'IntOptions': {
'DefaultValue': 123,
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'DoubleOptions': {
'DefaultValue': 123.0,
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'LiteralOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'TextOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'ReturnEnabled': True|False,
'SortEnabled': True|False,
'HighlightEnabled': True|False,
'AnalysisScheme': 'string'
},
'DateOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'LatLonOptions': {
'DefaultValue': 'string',
'SourceField': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False,
'SortEnabled': True|False
},
'IntArrayOptions': {
'DefaultValue': 123,
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'DoubleArrayOptions': {
'DefaultValue': 123.0,
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'LiteralArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
},
'TextArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'ReturnEnabled': True|False,
'HighlightEnabled': True|False,
'AnalysisScheme': 'string'
},
'DateArrayOptions': {
'DefaultValue': 'string',
'SourceFields': 'string',
'FacetEnabled': True|False,
'SearchEnabled': True|False,
'ReturnEnabled': True|False
}
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
},
]
}
Response Structure
(dict) --
The result of a DescribeIndexFields request. Contains the index fields configured for the domain specified in the request.
IndexFields (list) --
The index fields configured for the domain.
(dict) --
The value of an IndexField and its current status.
Options (dict) --
Configuration information for a field in the index, including its name, type, and options. The supported options depend on the `` IndexFieldType`` .
IndexFieldName (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
IndexFieldType (string) --
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide .
IntOptions (dict) --
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int . All options are enabled by default.
DefaultValue (integer) -- A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
SourceField (string) --
The name of the source field to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
DoubleOptions (dict) --
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double . All options are enabled by default.
DefaultValue (float) --
A value to use for the field if the field isn't specified for a document. This can be important if you are using the field in an expression and that field is not present in every document.
SourceField (string) --
The name of the source field to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
LiteralOptions (dict) --
Options for literal field. Present if IndexFieldType specifies the field is of type literal . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
TextOptions (dict) --
Options for text field. Present if IndexFieldType specifies the field is of type text . A text field is always searchable. All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
HighlightEnabled (boolean) --
Whether highlights can be returned for the field.
AnalysisScheme (string) --
The name of an analysis scheme for a text field.
DateOptions (dict) --
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
LatLonOptions (dict) --
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceField (string) --
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
SortEnabled (boolean) --
Whether the field can be used to sort the search results.
IntArrayOptions (dict) --
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array . All options are enabled by default.
DefaultValue (integer) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
DoubleArrayOptions (dict) --
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array . All options are enabled by default.
DefaultValue (float) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
LiteralArrayOptions (dict) --
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
TextArrayOptions (dict) --
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array . A text-array field is always searchable. All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
HighlightEnabled (boolean) --
Whether highlights can be returned for the field.
AnalysisScheme (string) --
The name of an analysis scheme for a text-array field.
DateArrayOptions (dict) --
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array . All options are enabled by default.
DefaultValue (string) -- A value to use for the field if the field isn't specified for a document.
SourceFields (string) --
A list of source fields to map to the field.
FacetEnabled (boolean) --
Whether facet information can be returned for the field.
SearchEnabled (boolean) --
Whether the contents of the field are searchable.
ReturnEnabled (boolean) --
Whether the contents of the field can be returned in the search results.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Gets the scaling parameters configured for a domain. A domain's scaling parameters specify the desired search instance type and replication count. For more information, see Configuring Scaling Options in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_scaling_parameters(
DomainName='string'
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
{
'ScalingParameters': {
'Options': {
'DesiredInstanceType': 'search.m1.small'|'search.m1.large'|'search.m2.xlarge'|'search.m2.2xlarge'|'search.m3.medium'|'search.m3.large'|'search.m3.xlarge'|'search.m3.2xlarge'|'search.small'|'search.medium'|'search.large'|'search.xlarge'|'search.2xlarge'|'search.previousgeneration.small'|'search.previousgeneration.large'|'search.previousgeneration.xlarge'|'search.previousgeneration.2xlarge',
'DesiredReplicationCount': 123,
'DesiredPartitionCount': 123
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
The result of a DescribeScalingParameters request. Contains the scaling parameters configured for the domain specified in the request.
The status and configuration of a search domain's scaling parameters.
The desired instance type and desired number of replicas of each index partition.
The instance type that you want to preconfigure for your domain. For example, search.m1.small .
The number of replicas you want to preconfigure for each index partition.
The number of partitions you want to preconfigure for your domain. Only valid when you select m2.2xlarge as the desired instance type.
The status of domain configuration option.
A timestamp for when this option was created.
A timestamp for when this option was last updated.
A unique integer that indicates when this option was last updated.
The state of processing a change to an option. Possible values:
Indicates that the option will be deleted once processing is complete.
Exceptions
Gets information about the access policies that control access to the domain's document and search endpoints. By default, shows the configuration with any pending changes. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Access for a Search Domain in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_service_access_policies(
DomainName='string',
Deployed=True|False
)
[REQUIRED]
The name of the domain you want to describe.
dict
Response Syntax
{
'AccessPolicies': {
'Options': 'string',
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a DescribeServiceAccessPolicies request.
AccessPolicies (dict) --
The access rules configured for the domain specified in the request.
Options (string) --
Access rules for a domain's document or search service endpoints. For more information, see Configuring Access for a Search Domain in the Amazon CloudSearch Developer Guide . The maximum size of a policy document is 100 KB.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Gets the suggesters configured for a domain. A suggester enables you to display possible matches before users finish typing their queries. Can be limited to specific suggesters by name. By default, shows all suggesters 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 Getting Search Suggestions in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_suggesters(
DomainName='string',
SuggesterNames=[
'string',
],
Deployed=True|False
)
[REQUIRED]
The name of the domain you want to describe.
The suggesters you want to describe.
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
dict
Response Syntax
{
'Suggesters': [
{
'Options': {
'SuggesterName': 'string',
'DocumentSuggesterOptions': {
'SourceField': 'string',
'FuzzyMatching': 'none'|'low'|'high',
'SortExpression': 'string'
}
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
},
]
}
Response Structure
(dict) --
The result of a DescribeSuggesters request.
Suggesters (list) --
The suggesters configured for the domain specified in the request.
(dict) --
The value of a Suggester and its current status.
Options (dict) --
Configuration information for a search suggester. Each suggester has a unique name and specifies the text field you want to use for suggestions. The following options can be configured for a suggester: FuzzyMatching , SortExpression .
SuggesterName (string) --
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
DocumentSuggesterOptions (dict) --
Options for a search suggester.
SourceField (string) --
The name of the index field you want to use for suggestions.
FuzzyMatching (string) --
The level of fuzziness allowed when suggesting matches for a string: none , low , or high . With none, the specified string is treated as an exact prefix. With low, suggestions must differ from the specified string by no more than one character. With high, suggestions can differ by up to two characters. The default is none.
SortExpression (string) --
An expression that computes a score for each suggestion to control how they are sorted. The scores are rounded to the nearest integer, with a floor of 0 and a ceiling of 2^31-1. A document's relevance score is not computed for suggestions, so sort expressions cannot reference the _score value. To sort suggestions using a numeric field or existing expression, simply specify the name of the field or expression. If no expression is configured for the suggester, the suggestions are sorted with the closest matches listed first.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Create a paginator for an operation.
Returns an object that can wait for some condition.
Tells the search domain to start indexing its documents using the latest indexing options. This operation must be invoked to activate options whose OptionStatus is RequiresIndexDocuments .
See also: AWS API Documentation
Request Syntax
response = client.index_documents(
DomainName='string'
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
{
'FieldNames': [
'string',
]
}
Response Structure
The result of an IndexDocuments request. Contains the status of the indexing operation, including the fields being indexed.
The names of the fields that are currently being indexed.
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.
Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.
The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id .
Exceptions
Lists all search domains owned by an account.
See also: AWS API Documentation
Request Syntax
response = client.list_domain_names()
{
'DomainNames': {
'string': 'string'
}
}
Response Structure
The result of a ListDomainNames request. Contains a list of the domains owned by an account.
The names of the search domains owned by an account.
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
The Amazon CloudSearch API version for a domain: 2011-02-01 or 2013-01-01.
Exceptions
Configures the availability options for a domain. Enabling the Multi-AZ option expands an Amazon CloudSearch domain to an additional Availability Zone in the same Region to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ option can take about half an hour to become active. For more information, see Configuring Availability Options in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.update_availability_options(
DomainName='string',
MultiAZ=True|False
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
You expand an existing search domain to a second Availability Zone by setting the Multi-AZ option to true. Similarly, you can turn off the Multi-AZ option to downgrade the domain to a single Availability Zone by setting the Multi-AZ option to false .
dict
Response Syntax
{
'AvailabilityOptions': {
'Options': True|False,
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a UpdateAvailabilityOptions request. Contains the status of the domain's availability options.
AvailabilityOptions (dict) --
The newly-configured availability options. Indicates whether Multi-AZ is enabled for the domain.
Options (boolean) --
The availability options configured for the domain.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Updates the domain's endpoint options, specifically whether all requests to the domain must arrive over HTTPS. For more information, see Configuring Domain Endpoint Options in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.update_domain_endpoint_options(
DomainName='string',
DomainEndpointOptions={
'EnforceHTTPS': True|False,
'TLSSecurityPolicy': 'Policy-Min-TLS-1-0-2019-07'|'Policy-Min-TLS-1-2-2019-07'
}
)
[REQUIRED]
A string that represents the name of a domain.
[REQUIRED]
Whether to require that all requests to the domain arrive over HTTPS. We recommend Policy-Min-TLS-1-2-2019-07 for TLSSecurityPolicy. For compatibility with older clients, the default is Policy-Min-TLS-1-0-2019-07.
Whether the domain is HTTPS only enabled.
The minimum required TLS version
dict
Response Syntax
{
'DomainEndpointOptions': {
'Options': {
'EnforceHTTPS': True|False,
'TLSSecurityPolicy': 'Policy-Min-TLS-1-0-2019-07'|'Policy-Min-TLS-1-2-2019-07'
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a UpdateDomainEndpointOptions request. Contains the configuration and status of the domain's endpoint options.
DomainEndpointOptions (dict) --
The newly-configured domain endpoint options.
Options (dict) --
The domain endpoint options configured for the domain.
EnforceHTTPS (boolean) --
Whether the domain is HTTPS only enabled.
TLSSecurityPolicy (string) --
The minimum required TLS version
Status (dict) --
The status of the configured domain endpoint options.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Configures scaling parameters for a domain. A domain's scaling parameters specify the desired search instance type and replication count. Amazon CloudSearch will still automatically scale your domain based on the volume of data and traffic, but not below the desired instance type and replication count. If the Multi-AZ option is enabled, these values control the resources used per Availability Zone. For more information, see Configuring Scaling Options in the Amazon CloudSearch Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.update_scaling_parameters(
DomainName='string',
ScalingParameters={
'DesiredInstanceType': 'search.m1.small'|'search.m1.large'|'search.m2.xlarge'|'search.m2.2xlarge'|'search.m3.medium'|'search.m3.large'|'search.m3.xlarge'|'search.m3.2xlarge'|'search.small'|'search.medium'|'search.large'|'search.xlarge'|'search.2xlarge'|'search.previousgeneration.small'|'search.previousgeneration.large'|'search.previousgeneration.xlarge'|'search.previousgeneration.2xlarge',
'DesiredReplicationCount': 123,
'DesiredPartitionCount': 123
}
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
The desired instance type and desired number of replicas of each index partition.
The instance type that you want to preconfigure for your domain. For example, search.m1.small .
The number of replicas you want to preconfigure for each index partition.
The number of partitions you want to preconfigure for your domain. Only valid when you select m2.2xlarge as the desired instance type.
dict
Response Syntax
{
'ScalingParameters': {
'Options': {
'DesiredInstanceType': 'search.m1.small'|'search.m1.large'|'search.m2.xlarge'|'search.m2.2xlarge'|'search.m3.medium'|'search.m3.large'|'search.m3.xlarge'|'search.m3.2xlarge'|'search.small'|'search.medium'|'search.large'|'search.xlarge'|'search.2xlarge'|'search.previousgeneration.small'|'search.previousgeneration.large'|'search.previousgeneration.xlarge'|'search.previousgeneration.2xlarge',
'DesiredReplicationCount': 123,
'DesiredPartitionCount': 123
},
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of a UpdateScalingParameters request. Contains the status of the newly-configured scaling parameters.
ScalingParameters (dict) --
The status and configuration of a search domain's scaling parameters.
Options (dict) --
The desired instance type and desired number of replicas of each index partition.
DesiredInstanceType (string) --
The instance type that you want to preconfigure for your domain. For example, search.m1.small .
DesiredReplicationCount (integer) --
The number of replicas you want to preconfigure for each index partition.
DesiredPartitionCount (integer) --
The number of partitions you want to preconfigure for your domain. Only valid when you select m2.2xlarge as the desired instance type.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
Configures the access rules that control access to the domain's document and search endpoints. For more information, see Configuring Access for an Amazon CloudSearch Domain .
See also: AWS API Documentation
Request Syntax
response = client.update_service_access_policies(
DomainName='string',
AccessPolicies='string'
)
[REQUIRED]
A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
[REQUIRED]
The access rules you want to configure. These rules replace any existing rules.
dict
Response Syntax
{
'AccessPolicies': {
'Options': 'string',
'Status': {
'CreationDate': datetime(2015, 1, 1),
'UpdateDate': datetime(2015, 1, 1),
'UpdateVersion': 123,
'State': 'RequiresIndexDocuments'|'Processing'|'Active'|'FailedToValidate',
'PendingDeletion': True|False
}
}
}
Response Structure
(dict) --
The result of an UpdateServiceAccessPolicies request. Contains the new access policies.
AccessPolicies (dict) --
The access rules configured for the domain.
Options (string) --
Access rules for a domain's document or search service endpoints. For more information, see Configuring Access for a Search Domain in the Amazon CloudSearch Developer Guide . The maximum size of a policy document is 100 KB.
Status (dict) --
The status of domain configuration option.
CreationDate (datetime) --
A timestamp for when this option was created.
UpdateDate (datetime) --
A timestamp for when this option was last updated.
UpdateVersion (integer) --
A unique integer that indicates when this option was last updated.
State (string) --
The state of processing a change to an option. Possible values:
PendingDeletion (boolean) --
Indicates that the option will be deleted once processing is complete.
Exceptions
The available paginators are: