Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use elasticsearch 2.x by default
Artur Smęt54419e7de0a4
diff --git a/docker-compose.yml b/docker-compose.ymlindex 6d36ce2be1..1a6588b2c9 100755--- a/docker-compose.yml+++ b/docker-compose.yml@@ -12,7 +12,7 @@ services:ports:- '6379:6379'search:- image: elasticsearch:5.1.1+ image: elasticsearch:2.4ports:- '9200:9200'web:diff --git a/docs/elasticsearch.rst b/docs/elasticsearch.rstindex 72571d6815..bd5b259a8a 100644--- a/docs/elasticsearch.rst+++ b/docs/elasticsearch.rst@@ -8,12 +8,8 @@ InstallationElasticsearch search backend requires an Elasticsearch server. For development purposes docker-compose will create a Docker container running an Elasticsearch server instance.Integration can be configured with set of environment variables.-- .. warning::-- Saleor requires Elasticsearch 5.1 or higher.-When you're deploying on Heroku - you can use add-on that provides Elasticsearch as a service.+By default Saleor uses Elasticsearch 2.4, but integration is compatibile with Elasticsearch 5 as wellServices available on Heroku:- https://elements.heroku.com/addons/searchboxdiff --git a/requirements.in b/requirements.inindex 35935400a9..e2e3a2edc4 100644--- a/requirements.in+++ b/requirements.in@@ -20,7 +20,7 @@ django-selectable>=0.8.0django-storages>=1.4.1django-versatileimagefield>=1.0.1django-webpack-loader>=0.3.0-elasticsearch>=5.0.1+elasticsearch>=2.0.0,<3.0.0fake-factory>=0.3.2google-measurement-protocol>=0.1.2,<0.2a0google-i18n-address>=2.0.1diff --git a/requirements.txt b/requirements.txtindex 5c33747b9d..18cb62f397 100644--- a/requirements.txt+++ b/requirements.txt@@ -33,7 +33,7 @@ django-versatileimagefield==1.6django-webpack-loader==0.4.1django==1.10.3djangorestframework==3.5.2-elasticsearch==5.0.1+elasticsearch==2.4.0fake-factory==0.7.2google-i18n-address==2.0.1google-measurement-protocol==0.1.6diff --git a/saleor/settings.py b/saleor/settings.pyindex 39e5c3f3a3..e8cc19122b 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -330,7 +330,7 @@ ES_URL = ELASTICSEARCH_URL or SEARCHBOX_URL or BONSAI_URL or ''if ES_URL:SEARCH_BACKENDS = {'default': {- 'BACKEND': 'saleor.search.backends.elasticsearch5',+ 'BACKEND': 'saleor.search.backends.elasticsearch2','URLS': [ES_URL],'INDEX': os.environ.get('ELASTICSEARCH_INDEX_NAME', 'storefront'),'TIMEOUT': 5,