Revert to ES 2
This commit is contained in:
parent
4ba2d0057d
commit
3837aa2c2d
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ web:
|
||||||
links:
|
links:
|
||||||
- redis
|
- redis
|
||||||
- postgres
|
- postgres
|
||||||
- elasticsearch
|
- elasticsearch:2
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue