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: links:
- redis - redis
- postgres - postgres
- elasticsearch - elasticsearch:2
ports: ports:
- "5000:5000" - "5000:5000"
environment: environment:

View file

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