Class AbstractAmazonCloudSearch
- java.lang.Object
-
- com.amazonaws.services.cloudsearchv2.AbstractAmazonCloudSearch
-
- All Implemented Interfaces:
AmazonCloudSearch
- Direct Known Subclasses:
AbstractAmazonCloudSearchAsync
public class AbstractAmazonCloudSearch extends Object implements AmazonCloudSearch
Abstract implementation ofAmazonCloudSearch. Convenient method forms pass through to the corresponding overload that takes a request object, which throws anUnsupportedOperationException.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAmazonCloudSearch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildSuggestersResultbuildSuggesters(BuildSuggestersRequest request)Indexes the search suggestions.CreateDomainResultcreateDomain(CreateDomainRequest request)Creates a new search domain.DefineAnalysisSchemeResultdefineAnalysisScheme(DefineAnalysisSchemeRequest request)Configures an analysis scheme that can be applied to atextortext-arrayfield to define language-specific text processing options.DefineExpressionResultdefineExpression(DefineExpressionRequest request)Configures anExpressionfor the search domain.DefineIndexFieldResultdefineIndexField(DefineIndexFieldRequest request)Configures anIndexFieldfor the search domain.DefineSuggesterResultdefineSuggester(DefineSuggesterRequest request)Configures a suggester for a domain.DeleteAnalysisSchemeResultdeleteAnalysisScheme(DeleteAnalysisSchemeRequest request)Deletes an analysis scheme.DeleteDomainResultdeleteDomain(DeleteDomainRequest request)Permanently deletes a search domain and all of its data.DeleteExpressionResultdeleteExpression(DeleteExpressionRequest request)Removes anExpressionfrom the search domain.DeleteIndexFieldResultdeleteIndexField(DeleteIndexFieldRequest request)Removes anIndexFieldfrom the search domain.DeleteSuggesterResultdeleteSuggester(DeleteSuggesterRequest request)Deletes a suggester.DescribeAnalysisSchemesResultdescribeAnalysisSchemes(DescribeAnalysisSchemesRequest request)Gets the analysis schemes configured for a domain.DescribeAvailabilityOptionsResultdescribeAvailabilityOptions(DescribeAvailabilityOptionsRequest request)Gets the availability options configured for a domain.DescribeDomainsResultdescribeDomains()Simplified method form for invoking the DescribeDomains operation.DescribeDomainsResultdescribeDomains(DescribeDomainsRequest request)Gets information about the search domains owned by this account.DescribeExpressionsResultdescribeExpressions(DescribeExpressionsRequest request)Gets the expressions configured for the search domain.DescribeIndexFieldsResultdescribeIndexFields(DescribeIndexFieldsRequest request)Gets information about the index fields configured for the search domain.DescribeScalingParametersResultdescribeScalingParameters(DescribeScalingParametersRequest request)Gets the scaling parameters configured for a domain.DescribeServiceAccessPoliciesResultdescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request)Gets information about the access policies that control access to the domain's document and search endpoints.DescribeSuggestersResultdescribeSuggesters(DescribeSuggestersRequest request)Gets the suggesters configured for a domain.ResponseMetadatagetCachedResponseMetadata(AmazonWebServiceRequest request)Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected.IndexDocumentsResultindexDocuments(IndexDocumentsRequest request)Tells the search domain to start indexing its documents using the latest indexing options.ListDomainNamesResultlistDomainNames()Simplified method form for invoking the ListDomainNames operation.ListDomainNamesResultlistDomainNames(ListDomainNamesRequest request)Lists all search domains owned by an account.voidsetEndpoint(String endpoint)Overrides the default endpoint for this client ("https://cloudsearch.us-east-1.amazonaws.com/").voidsetRegion(Region region)An alternative toAmazonCloudSearch.setEndpoint(String), sets the regional endpoint for this client's service calls.voidshutdown()Shuts down this client object, releasing any resources that might be held open.UpdateAvailabilityOptionsResultupdateAvailabilityOptions(UpdateAvailabilityOptionsRequest request)Configures the availability options for a domain.UpdateScalingParametersResultupdateScalingParameters(UpdateScalingParametersRequest request)Configures scaling parameters for a domain.UpdateServiceAccessPoliciesResultupdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request)Configures the access rules that control access to the domain's document and search endpoints.
-
-
-
Method Detail
-
setEndpoint
public void setEndpoint(String endpoint)
Description copied from interface:AmazonCloudSearchOverrides the default endpoint for this client ("https://cloudsearch.us-east-1.amazonaws.com/"). Callers can use this method to control which AWS region they want to work with.Callers can pass in just the endpoint (ex: "cloudsearch.us-east-1.amazonaws.com/") or a full URL, including the protocol (ex: "https://cloudsearch.us-east-1.amazonaws.com/"). If the protocol is not specified here, the default protocol from this client's
ClientConfigurationwill be used, which by default is HTTPS.For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID= 3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
- Specified by:
setEndpointin interfaceAmazonCloudSearch- Parameters:
endpoint- The endpoint (ex: "cloudsearch.us-east-1.amazonaws.com/") or a full URL, including the protocol (ex: "https://cloudsearch.us-east-1.amazonaws.com/") of the region specific AWS endpoint this client will communicate with.
-
setRegion
public void setRegion(Region region)
Description copied from interface:AmazonCloudSearchAn alternative toAmazonCloudSearch.setEndpoint(String), sets the regional endpoint for this client's service calls. Callers can use this method to control which AWS region they want to work with.By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the
ClientConfigurationsupplied at construction.This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
- Specified by:
setRegionin interfaceAmazonCloudSearch- Parameters:
region- The region this client will communicate with. SeeRegion.getRegion(com.amazonaws.regions.Regions)for accessing a given region. Must not be null and must be a region where the service is available.- See Also:
Region.getRegion(com.amazonaws.regions.Regions),Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration),Region.isServiceSupported(String)
-
buildSuggesters
public BuildSuggestersResult buildSuggesters(BuildSuggestersRequest request)
Description copied from interface:AmazonCloudSearchIndexes the search suggestions. For more information, see Configuring Suggesters in the Amazon CloudSearch Developer Guide.
- Specified by:
buildSuggestersin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theBuildSuggesteroperation. Specifies the name of the domain you want to update.- Returns:
- Result of the BuildSuggesters operation returned by the service.
-
createDomain
public CreateDomainResult createDomain(CreateDomainRequest request)
Description copied from interface:AmazonCloudSearchCreates a new search domain. For more information, see Creating a Search Domain in the Amazon CloudSearch Developer Guide.
- Specified by:
createDomainin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theCreateDomainoperation. Specifies a name for the new search domain.- Returns:
- Result of the CreateDomain operation returned by the service.
-
defineAnalysisScheme
public DefineAnalysisSchemeResult defineAnalysisScheme(DefineAnalysisSchemeRequest request)
Description copied from interface:AmazonCloudSearchConfigures an analysis scheme that can be applied to a
textortext-arrayfield to define language-specific text processing options. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide.- Specified by:
defineAnalysisSchemein interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDefineAnalysisSchemeoperation. Specifies the name of the domain you want to update and the analysis scheme configuration.- Returns:
- Result of the DefineAnalysisScheme operation returned by the service.
-
defineExpression
public DefineExpressionResult defineExpression(DefineExpressionRequest request)
Description copied from interface:AmazonCloudSearchConfigures an
Expressionfor 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.- Specified by:
defineExpressionin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDefineExpressionoperation. Specifies the name of the domain you want to update and the expression you want to configure.- Returns:
- Result of the DefineExpression operation returned by the service.
-
defineIndexField
public DefineIndexFieldResult defineIndexField(DefineIndexFieldRequest request)
Description copied from interface:AmazonCloudSearchConfigures an
IndexFieldfor 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 theIndexFieldType. If the field exists, the new configuration replaces the old one. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.- Specified by:
defineIndexFieldin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDefineIndexFieldoperation. Specifies the name of the domain you want to update and the index field configuration.- Returns:
- Result of the DefineIndexField operation returned by the service.
-
defineSuggester
public DefineSuggesterResult defineSuggester(DefineSuggesterRequest request)
Description copied from interface:AmazonCloudSearchConfigures 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.
- Specified by:
defineSuggesterin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDefineSuggesteroperation. Specifies the name of the domain you want to update and the suggester configuration.- Returns:
- Result of the DefineSuggester operation returned by the service.
-
deleteAnalysisScheme
public DeleteAnalysisSchemeResult deleteAnalysisScheme(DeleteAnalysisSchemeRequest request)
Description copied from interface:AmazonCloudSearchDeletes an analysis scheme. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide.
- Specified by:
deleteAnalysisSchemein interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDeleteAnalysisSchemeoperation. Specifies the name of the domain you want to update and the analysis scheme you want to delete.- Returns:
- Result of the DeleteAnalysisScheme operation returned by the service.
-
deleteDomain
public DeleteDomainResult deleteDomain(DeleteDomainRequest request)
Description copied from interface:AmazonCloudSearchPermanently 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.
- Specified by:
deleteDomainin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDeleteDomainoperation. Specifies the name of the domain you want to delete.- Returns:
- Result of the DeleteDomain operation returned by the service.
-
deleteExpression
public DeleteExpressionResult deleteExpression(DeleteExpressionRequest request)
Description copied from interface:AmazonCloudSearchRemoves an
Expressionfrom the search domain. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.- Specified by:
deleteExpressionin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDeleteExpressionoperation. Specifies the name of the domain you want to update and the name of the expression you want to delete.- Returns:
- Result of the DeleteExpression operation returned by the service.
-
deleteIndexField
public DeleteIndexFieldResult deleteIndexField(DeleteIndexFieldRequest request)
Description copied from interface:AmazonCloudSearchRemoves an
IndexFieldfrom the search domain. For more information, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.- Specified by:
deleteIndexFieldin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDeleteIndexFieldoperation. Specifies the name of the domain you want to update and the name of the index field you want to delete.- Returns:
- Result of the DeleteIndexField operation returned by the service.
-
deleteSuggester
public DeleteSuggesterResult deleteSuggester(DeleteSuggesterRequest request)
Description copied from interface:AmazonCloudSearchDeletes a suggester. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide.
- Specified by:
deleteSuggesterin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDeleteSuggesteroperation. Specifies the name of the domain you want to update and name of the suggester you want to delete.- Returns:
- Result of the DeleteSuggester operation returned by the service.
-
describeAnalysisSchemes
public DescribeAnalysisSchemesResult describeAnalysisSchemes(DescribeAnalysisSchemesRequest request)
Description copied from interface:AmazonCloudSearchGets the analysis schemes configured for a domain. An analysis scheme defines language-specific text processing options for a
textfield. Can be limited to specific analysis schemes by name. By default, shows all analysis schemes and includes any pending changes to the configuration. Set theDeployedoption totrueto show the active configuration and exclude pending changes. For more information, see Configuring Analysis Schemes in the Amazon CloudSearch Developer Guide.- Specified by:
describeAnalysisSchemesin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDescribeAnalysisSchemesoperation. Specifies the name of the domain you want to describe. To limit the response to particular analysis schemes, specify the names of the analysis schemes you want to describe. To show the active configuration and exclude any pending changes, set theDeployedoption totrue.- Returns:
- Result of the DescribeAnalysisSchemes operation returned by the service.
-
describeAvailabilityOptions
public DescribeAvailabilityOptionsResult describeAvailabilityOptions(DescribeAvailabilityOptionsRequest request)
Description copied from interface:AmazonCloudSearchGets the availability options configured for a domain. By default, shows the configuration with any pending changes. Set the
Deployedoption totrueto show the active configuration and exclude pending changes. For more information, see Configuring Availability Options in the Amazon CloudSearch Developer Guide.- Specified by:
describeAvailabilityOptionsin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDescribeAvailabilityOptionsoperation. Specifies the name of the domain you want to describe. To show the active configuration and exclude any pending changes, set the Deployed option totrue.- Returns:
- Result of the DescribeAvailabilityOptions operation returned by the service.
-
describeDomains
public DescribeDomainsResult describeDomains(DescribeDomainsRequest request)
Description copied from interface:AmazonCloudSearchGets 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
matchallrequest 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.- Specified by:
describeDomainsin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDescribeDomainsoperation. By default shows the status of all domains. To restrict the response to particular domains, specify the names of the domains you want to describe.- Returns:
- Result of the DescribeDomains operation returned by the service.
-
describeDomains
public DescribeDomainsResult describeDomains()
Description copied from interface:AmazonCloudSearchSimplified method form for invoking the DescribeDomains operation.- Specified by:
describeDomainsin interfaceAmazonCloudSearch- See Also:
AmazonCloudSearch.describeDomains(DescribeDomainsRequest)
-
describeExpressions
public DescribeExpressionsResult describeExpressions(DescribeExpressionsRequest request)
Description copied from interface:AmazonCloudSearchGets 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
Deployedoption totrueto show the active configuration and exclude pending changes. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.- Specified by:
describeExpressionsin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDescribeDomainsoperation. Specifies the name of the domain you want to describe. To restrict the response to particular expressions, specify the names of the expressions you want to describe. To show the active configuration and exclude any pending changes, set theDeployedoption totrue.- Returns:
- Result of the DescribeExpressions operation returned by the service.
-
describeIndexFields
public DescribeIndexFieldsResult describeIndexFields(DescribeIndexFieldsRequest request)
Description copied from interface:AmazonCloudSearchGets 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
Deployedoption totrueto show the active configuration and exclude pending changes. For more information, see Getting Domain Information in the Amazon CloudSearch Developer Guide.- Specified by:
describeIndexFieldsin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDescribeIndexFieldsoperation. Specifies the name of the domain you want to describe. To restrict the response to particular index fields, specify the names of the index fields you want to describe. To show the active configuration and exclude any pending changes, set theDeployedoption totrue.- Returns:
- Result of the DescribeIndexFields operation returned by the service.
-
describeScalingParameters
public DescribeScalingParametersResult describeScalingParameters(DescribeScalingParametersRequest request)
Description copied from interface:AmazonCloudSearchGets 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.
- Specified by:
describeScalingParametersin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDescribeScalingParametersoperation. Specifies the name of the domain you want to describe.- Returns:
- Result of the DescribeScalingParameters operation returned by the service.
-
describeServiceAccessPolicies
public DescribeServiceAccessPoliciesResult describeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request)
Description copied from interface:AmazonCloudSearchGets 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
Deployedoption totrueto show the active configuration and exclude pending changes. For more information, see Configuring Access for a Search Domain in the Amazon CloudSearch Developer Guide.- Specified by:
describeServiceAccessPoliciesin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDescribeServiceAccessPoliciesoperation. Specifies the name of the domain you want to describe. To show the active configuration and exclude any pending changes, set theDeployedoption totrue.- Returns:
- Result of the DescribeServiceAccessPolicies operation returned by the service.
-
describeSuggesters
public DescribeSuggestersResult describeSuggesters(DescribeSuggestersRequest request)
Description copied from interface:AmazonCloudSearchGets 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
Deployedoption totrueto show the active configuration and exclude pending changes. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide.- Specified by:
describeSuggestersin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theDescribeSuggesteroperation. Specifies the name of the domain you want to describe. To restrict the response to particular suggesters, specify the names of the suggesters you want to describe. To show the active configuration and exclude any pending changes, set theDeployedoption totrue.- Returns:
- Result of the DescribeSuggesters operation returned by the service.
-
indexDocuments
public IndexDocumentsResult indexDocuments(IndexDocumentsRequest request)
Description copied from interface:AmazonCloudSearchTells 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.- Specified by:
indexDocumentsin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theIndexDocumentsoperation. Specifies the name of the domain you want to re-index.- Returns:
- Result of the IndexDocuments operation returned by the service.
-
listDomainNames
public ListDomainNamesResult listDomainNames(ListDomainNamesRequest request)
Description copied from interface:AmazonCloudSearchLists all search domains owned by an account.
- Specified by:
listDomainNamesin interfaceAmazonCloudSearch- Returns:
- Result of the ListDomainNames operation returned by the service.
-
listDomainNames
public ListDomainNamesResult listDomainNames()
Description copied from interface:AmazonCloudSearchSimplified method form for invoking the ListDomainNames operation.- Specified by:
listDomainNamesin interfaceAmazonCloudSearch- See Also:
AmazonCloudSearch.listDomainNames(ListDomainNamesRequest)
-
updateAvailabilityOptions
public UpdateAvailabilityOptionsResult updateAvailabilityOptions(UpdateAvailabilityOptionsRequest request)
Description copied from interface:AmazonCloudSearchConfigures 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.
- Specified by:
updateAvailabilityOptionsin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theUpdateAvailabilityOptionsoperation. Specifies the name of the domain you want to update and the Multi-AZ availability option.- Returns:
- Result of the UpdateAvailabilityOptions operation returned by the service.
-
updateScalingParameters
public UpdateScalingParametersResult updateScalingParameters(UpdateScalingParametersRequest request)
Description copied from interface:AmazonCloudSearchConfigures 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.
- Specified by:
updateScalingParametersin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theUpdateScalingParametersoperation. Specifies the name of the domain you want to update and the scaling parameters you want to configure.- Returns:
- Result of the UpdateScalingParameters operation returned by the service.
-
updateServiceAccessPolicies
public UpdateServiceAccessPoliciesResult updateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request)
Description copied from interface:AmazonCloudSearchConfigures 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.
- Specified by:
updateServiceAccessPoliciesin interfaceAmazonCloudSearch- Parameters:
request- Container for the parameters to theUpdateServiceAccessPoliciesoperation. Specifies the name of the domain you want to update and the access rules you want to configure.- Returns:
- Result of the UpdateServiceAccessPolicies operation returned by the service.
-
shutdown
public void shutdown()
Description copied from interface:AmazonCloudSearchShuts down this client object, releasing any resources that might be held open. This is an optional method, and callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client has been shutdown, it should not be used to make any more requests.- Specified by:
shutdownin interfaceAmazonCloudSearch
-
getCachedResponseMetadata
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Description copied from interface:AmazonCloudSearchReturns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
- Specified by:
getCachedResponseMetadatain interfaceAmazonCloudSearch- Parameters:
request- The originally executed request.- Returns:
- The response metadata for the specified request, or null if none is available.
-
-