Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Yeat Another Doc Fix

Jakub Draganek1b21e8f8b2d7
diff --git a/docs/elasticsearch.rst b/docs/elasticsearch.rst
index 201f26096e..2d7645bd14 100644
--- a/docs/elasticsearch.rst
+++ b/docs/elasticsearch.rst
@@ -29,7 +29,7 @@ Environment variables
Data indexing
-------------
-Saleor uses `Django Elasticsearch DSL <https://github.com/sabricot/django-elasticsearch-dsl>` as a wrapper for `Elasticsearch DSL <https://github.com/elastic/elasticsearch-dsl-py>` to enable automatic indexing and sync. Indexes are defined in `documents <https://github.com/saleor/saleor/search/documents.py>` file. Please refer to documentation of above projects for further help.
+Saleor uses `Django Elasticsearch DSL <https://github.com/sabricot/django-elasticsearch-dsl>`_ as a wrapper for `Elasticsearch DSL <https://github.com/elastic/elasticsearch-dsl-py>`_ to enable automatic indexing and sync. Indexes are defined in `documents <https://github.com/saleor/saleor/search/documents.py>`_ file. Please refer to documentation of above projects for further help.
Initial search index can be created with following command:
@@ -43,13 +43,13 @@ By default all indexed objects (products, users, orders) are reindexed every tim
Search integration architecture
-------------------------------
-Search backends use `Elasticsearch DSL <https://github.com/elastic/elasticsearch-dsl-py>` for query definition in saleor/search/backends.
+Search backends use `Elasticsearch DSL <https://github.com/elastic/elasticsearch-dsl-py>`_ for query definition in saleor/search/backends.
-There are two backends defined for elasticsearch integration, `storefront <https://github/com/saleor/saleor/search/backends/elasticsearch.py>` and `dashboard <https://github.com/saleor/saleor/search/backends/elasticsearch_dashboard.py>`. Storefront search uses only storefront index for product only search, dashboard backend does additional searches in users and orders indexes as well.
+There are two backends defined for elasticsearch integration, `storefront <https://github/com/saleor/saleor/search/backends/elasticsearch.py>`_ and `dashboard <https://github.com/saleor/saleor/search/backends/elasticsearch_dashboard.py>`_. Storefront search uses only storefront index for product only search, dashboard backend does additional searches in users and orders indexes as well.
Testing
-------
-There are two levels of testing for search functionality. Syntax of Elasticsearch queries is ensured by unit tests for backend, [integration](tests/test_search.py) testing is done using `VCR.py <https://github.com/kevin1024/vcrpy>` to mock external communication. If search logic is modified, make sure to record new communication and align test fixtures accordingly! Pytest will run VCR in never-recording mode on CI to make sure no attempts of communication are made, so make sure most recent
+There are two levels of testing for search functionality. Syntax of Elasticsearch queries is ensured by unit tests for backend, `integration <https://github.com/saleor/saleor/tests/test_search.py>`_ testing is done using `VCR.py <https://github.com/kevin1024/vcrpy>`_ to mock external communication. If search logic is modified, make sure to record new communication and align test fixtures accordingly! Pytest will run VCR in never-recording mode on CI to make sure no attempts of communication are made, so make sure most recent
cassettes are always included in your repository.