Skip to main content

index_fields

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

Overview

Nameindex_fields
TypeResource
Idaws.cloudsearch.index_fields

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
optionsstringConfiguration information for a field in the index, including its name, type, and options. The supported options depend on the IndexFieldType.
statusstringThe status of domain configuration option.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_index_fieldsselectDomainName, regionFieldNames, DeployedGets 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.
delete_index_fielddeleteDomainName, IndexFieldName, regionRemoves an IndexField from the search domain. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.

Parameters

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

NameDatatypeDescription
DomainNamestring
IndexFieldNamestringThe name of the index field your want to remove from the domain's indexing options.
regionstringAWS region (default: us-east-1)
DeployedbooleanWhether to display the deployed configuration (true) or include any pending changes (false). Defaults to false.
FieldNamesarrayA list of the index fields you want to describe. If not specified, information is returned for all configured index fields.

SELECT examples

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.

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

DELETE examples

Removes an IndexField from the search domain. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.

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