Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add documentation for elasticsearch integration
Artur Smęt4ddc4b332f72
diff --git a/docs/configuration.rst b/docs/configuration.rstindex 2360544b58..4cbec76c2e 100644--- a/docs/configuration.rst+++ b/docs/configuration.rst@@ -48,3 +48,6 @@ Environment variables``SECRET_KEY``Controls `Django's secret key <https://docs.djangoproject.com/en/1.10/ref/settings/#secret-key>`_ setting.++``ELASTICSEARCH_URL``+ Controls optional `Elasticsearch <https://www.elastic.co/products/elasticsearch>`_ integration. (see :doc:`elasticsearch`) Defaults to ``None``.diff --git a/docs/elasticsearch.rst b/docs/elasticsearch.rstnew file mode 100644index 0000000000..8c386442c5--- /dev/null+++ b/docs/elasticsearch.rst@@ -0,0 +1,47 @@+Elasticsearch+=============+++Installation+------------++Elasticsearch 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.++When you're deploying on Heroku - you can use add-on that provides Elasticsearch as a service.+Services available on Heroku:++ - https://elements.heroku.com/addons/searchbox+ - https://elements.heroku.com/addons/bonsai++If you're deploying somewhere else, you can use one of following services:++ - http://www.searchly.com/+ - https://www.elastic.co/cloud+++Environment variables+---------------------++``ELASTICSEARCH_URL`` or ``BONSAI_URL`` or ``SEARCHBOX_URL``+ URL to elasticsearch engine. If it's empty - search will be not available.++ **Example:** ``https://user:[email protected]:9200``+++``ELASTICSEARCH_INDEX_NAME``+ Controls elasticsearch index name where all searchable documents will be stored. Defaults to ``storefront``. Index will be created automatically with first indexing.++Data indexing+-------------++Saleor modified wagtailsearch app from `Wagtail <http://wagtail.io/>`_ to provide search. Core search concepts are preserved, only elasticsearch backends are available.+Dashboard uses custom backend that searches in all available indexes.+Initial search index can be created with following command:++.. code-block:: bash++ $ python manage.py update_index++By default products are reindexed after saving forms in the dashboard. Orders are updated after they're placed.