Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upload documents to AWS CloudSearch with Boto3

So I'm not sure how to point to the correct domain with:

boto3.client('cloudsearchdomain').upload_documents(file, type)

The documentation says to configure the domains with CloudSearch DescribeDomains actions.

However, the documentation for CloudSearch only lists a method, describe_domains, which merely lists the domains, info etc.

How do I point to the correct domain to upload documents to CloudSearch?

like image 204
pauld Avatar asked Apr 04 '17 20:04

pauld


People also ask

Is Amazon CloudSearch deprecated?

Amazon search is deprecated: Amazon search service is no longer supported. To set up a search functionality on your site(s), configure one of the three built-in search services instead. Amazon Cloud Search is deprecated in Sitefinity 13.3.

What is facet in CloudSearch?

A facet is an index field that represents a category that you want to use to refine and filter search results. When you submit search requests to Amazon CloudSearch, you can request facet information to find out how many documents share the same value in a particular field.


1 Answers

when initializing the client, use the kwarg endpoint_url ->

boto3.client('cloudsearchdomain', endpoint_url="http://search.example.cloudsearch.aws")
like image 172
pauld Avatar answered Oct 13 '22 06:10

pauld