diff options
author | Artur Smęt <artur.smet@mirumee.com> | 2016-12-15 12:09:10 +0100 |
---|---|---|
committer | Artur Smęt <artur.smet@mirumee.com> | 2016-12-20 15:38:50 +0100 |
commit | 4ddc4b332f72eeb974081fb61233cdff9c0856e5 (patch) | |
tree | e49203683255db6fdbba696126a45ba87cfaa04b /docs | |
parent | bb40c88ca6a97528d0f6497ec847c90ae19ee94c (diff) | |
download | saleor-frontend-4ddc4b332f72eeb974081fb61233cdff9c0856e5.tar.gz saleor-frontend-4ddc4b332f72eeb974081fb61233cdff9c0856e5.tar.bz2 saleor-frontend-4ddc4b332f72eeb974081fb61233cdff9c0856e5.zip |
Add documentation for elasticsearch integration
Diffstat (limited to 'docs')
-rw-r--r-- | docs/configuration.rst | 3 | ||||
-rw-r--r-- | docs/elasticsearch.rst | 47 |
2 files changed, 50 insertions, 0 deletions
diff --git a/docs/configuration.rst b/docs/configuration.rst index 2360544b..4cbec76c 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.rst new file mode 100644 index 00000000..8c386442 --- /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:password@my-3rdparty-es.com: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. |