From e93ee241c2039f5f9343ae98b45d175046c1bfc9 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Mon, 7 Dec 2015 13:44:16 +0000 Subject: [PATCH] docs(search/elastic): Fix capitalisation of Elasticsearch --- wagtail/wagtailsearch/backends/elasticsearch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wagtail/wagtailsearch/backends/elasticsearch.py b/wagtail/wagtailsearch/backends/elasticsearch.py index 0ca4e908b..1fdc963d2 100644 --- a/wagtail/wagtailsearch/backends/elasticsearch.py +++ b/wagtail/wagtailsearch/backends/elasticsearch.py @@ -425,7 +425,7 @@ class ElasticSearchResults(BaseSearchResults): if self.stop is not None: params['size'] = self.stop - self.start - # Send to ElasticSearch + # Send to Elasticsearch hits = self.backend.es.search(**params) # Get pks from results @@ -439,7 +439,7 @@ class ElasticSearchResults(BaseSearchResults): for obj in queryset: results[str(obj.pk)] = obj - # Return results in order given by ElasticSearch + # Return results in order given by Elasticsearch return [results[str(pk)] for pk in pks if results[str(pk)]] def _do_count(self): @@ -616,8 +616,8 @@ class ElasticSearch(BaseSearch): 'http_auth': http_auth, }) - # Get ElasticSearch interface - # Any remaining params are passed into the ElasticSearch constructor + # Get Elasticsearch interface + # Any remaining params are passed into the Elasticsearch constructor self.es = Elasticsearch( hosts=self.es_hosts, timeout=self.es_timeout,