diff options
Diffstat (limited to 'boto/cloudsearch2/search.py')
-rw-r--r-- | boto/cloudsearch2/search.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/boto/cloudsearch2/search.py b/boto/cloudsearch2/search.py index 78ffc168..634faf85 100644 --- a/boto/cloudsearch2/search.py +++ b/boto/cloudsearch2/search.py @@ -131,7 +131,7 @@ class Query(object): params['highlight.%s' % k] = v if self.options: - params['options'] = self.options + params['q.options'] = self.options if self.return_fields: params['return'] = ','.join(self.return_fields) @@ -152,6 +152,10 @@ class SearchConnection(object): self.endpoint = endpoint self.session = requests.Session() + # Copy proxy settings from connection + if self.domain and self.domain.layer1 and self.domain.layer1.use_proxy: + self.session.proxies['http'] = self.domain.layer1.get_proxy_url_with_auth() + if not endpoint: self.endpoint = domain.search_service_endpoint |