Update docs for Amazon ElasticSearch service as backend.

This change moves the "connection_class" key into "OPTIONS", resolving error
``AttributeError: 'AWS4Auth' object has no attribute 'encode'``.
pull/3787/head
Ben Sturmfels 2017-08-24 05:41:02 +10:00 zatwierdzone przez Matt Westcott
rodzic 67bc54f628
commit 5301010474
1 zmienionych plików z 9 dodań i 7 usunięć

Wyświetl plik

@ -183,7 +183,7 @@ The Elasticsearch backend is compatible with `Amazon Elasticsearch Service`_, bu
WAGTAILSEARCH_BACKENDS = { WAGTAILSEARCH_BACKENDS = {
'default': { 'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch', 'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch2',
'INDEX': 'wagtail', 'INDEX': 'wagtail',
'TIMEOUT': 5, 'TIMEOUT': 5,
'HOSTS': [{ 'HOSTS': [{
@ -193,7 +193,9 @@ The Elasticsearch backend is compatible with `Amazon Elasticsearch Service`_, bu
'verify_certs': True, 'verify_certs': True,
'http_auth': AWS4Auth('ACCESS_KEY', 'SECRET_KEY', 'REGION', 'es'), 'http_auth': AWS4Auth('ACCESS_KEY', 'SECRET_KEY', 'REGION', 'es'),
}], }],
'OPTIONS': {
'connection_class': RequestsHttpConnection, 'connection_class': RequestsHttpConnection,
},
} }
} }