CloudSearchClient

Amazon CloudSearch Configuration Service

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 .

Installation

NPM
npm install @aws-sdk/client-cloudsearch
Yarn
yarn add @aws-sdk/client-cloudsearch
pnpm
pnpm add @aws-sdk/client-cloudsearch

CloudSearchClient Operations

Command
Summary
BuildSuggestersCommand

Indexes the search suggestions. For more information, see Configuring Suggesters  in the Amazon CloudSearch Developer Guide.

CreateDomainCommand

Creates a new search domain. For more information, see Creating a Search Domain  in the Amazon CloudSearch Developer Guide.

DefineAnalysisSchemeCommand

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.

DefineExpressionCommand

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.

DefineIndexFieldCommand

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.

DefineSuggesterCommand

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.

DeleteAnalysisSchemeCommand

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

DeleteDomainCommand

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.

DeleteExpressionCommand

Removes an Expression from the search domain. For more information, see Configuring Expressions  in the Amazon CloudSearch Developer Guide.

DeleteIndexFieldCommand

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

DeleteSuggesterCommand

Deletes a suggester. For more information, see Getting Search Suggestions  in the Amazon CloudSearch Developer Guide.

DescribeAnalysisSchemesCommand

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.

DescribeAvailabilityOptionsCommand

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.

DescribeDomainEndpointOptionsCommand

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.

DescribeDomainsCommand

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.

DescribeExpressionsCommand

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.

DescribeIndexFieldsCommand

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.

DescribeScalingParametersCommand

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.

DescribeServiceAccessPoliciesCommand

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.

DescribeSuggestersCommand

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.

IndexDocumentsCommand

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.

ListDomainNamesCommand

Lists all search domains owned by an account.

UpdateAvailabilityOptionsCommand

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.

UpdateDomainEndpointOptionsCommand

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.

UpdateScalingParametersCommand

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.

UpdateServiceAccessPoliciesCommand

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 .

CloudSearchClient Configuration

Parameter
Type
Description
defaultsMode
Optional
DefaultsMode | Provider<DefaultsMode>
The @smithy/smithy-client#DefaultsMode that will be used to determine how certain default configuration options are resolved in the SDK.
disableHostPrefix
Optional
boolean
Disable dynamically changing the endpoint of the client based on the hostPrefix trait of an operation.
extensions
Optional
RuntimeExtension[]
Optional extensions
logger
Optional
Logger
Optional logger for logging debug/info/warn/error.
maxAttempts
Optional
number | Provider<number>
Value for how many times a request will be made at most in case of retry.
profile
Optional
string
Setting a client profile is similar to setting a value for the AWS_PROFILE environment variable. Setting a profile on a client in code only affects the single client instance, unlike AWS_PROFILE.When set, and only for environments where an AWS configuration file exists, fields configurable by this file will be retrieved from the specified profile within that file. Conflicting code configuration and environment variables will still have higher priority.For client credential resolution that involves checking the AWS configuration file, the client's profile (this value) will be used unless a different profile is set in the credential provider options.
region
Optional
string | Provider<string>
The AWS region to which this client will send requests
requestHandler
Optional
__HttpHandlerUserInput
The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
retryMode
Optional
string | Provider<string>
Specifies which retry algorithm to use.
useDualstackEndpoint
Optional
boolean | Provider<boolean>
Enables IPv6/IPv4 dualstack endpoint.
useFipsEndpoint
Optional
boolean | Provider<boolean>
Enables FIPS compatible endpoints.
Additional config fields are described in the full configuration type: CloudSearchClientConfig