所以不确定如何使用
指向正确的域名boto3.client('cloudsearchdomain').upload_documents(file, type)
文档https://boto3.readthedocs.io/en/latest/reference/services/cloudsearchdomain.html表示使用CloudSearch DescribeDomains操作配置域。但是,在CloudSearch https://boto3.readthedocs.io/en/latest/reference/services/cloudsearch.html#CloudSearch.Client.describe_domains的文档中,只列出了一个方法describe_domains,它只列出了域名,信息等。如何指出正确的域名将文档上传到云搜索?
答案 0 :(得分:5)
初始化客户端时,请使用kwarg endpoint_url
- >
boto3.client('cloudsearchdomain', endpoint_url="http://search.example.cloudsearch.aws")