Revert to ES 2

This commit is contained in:
Oleg Lavrovsky 2017-05-03 23:46:19 +02:00
parent 4ba2d0057d
commit 3837aa2c2d
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ web:
links:
- redis
- postgres
- elasticsearch
- elasticsearch:2
ports:
- "5000:5000"
environment:

View file

@ -145,7 +145,7 @@ if REDIS_LOCATION is not None:
if 'ELASTICSEARCH_URL' in env:
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch5',
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch2',
'URLS': [env['ELASTICSEARCH_URL']],
'INDEX': APP_NAME,
'ATOMIC_REBUILD': True,