Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix documentation structure and links
Jakub Draganekf82dcba1846f
diff --git a/docs/search.rst b/docs/contentsearch.rstsimilarity index 80%rename from docs/search.rstrename to docs/contentsearch.rstindex f5cf1e9de2..fe65895176 100644--- a/docs/search.rst+++ b/docs/contentsearch.rst@@ -1,12 +1,13 @@Search-=============+======There are two possible mechanisms supporting search in Saleor. PostgreSQL full text search capability can be used or external Elasticsearch service.+PostgreSQL full text search----------------------------PostgreSQL search in enabled by default, see :doc:`postgresql_search` for more information.+PostgreSQL search in enabled by default, see :doc:`postgres_search` for more information.Elasticsearch@@ -18,6 +19,8 @@ You can integrate Saleor with Elasticsearch service, see :doc:`elasticsearch` foWhich one to choose--------------------Your preference for search backend might depend heavily on project details. PostgreSQL search uses same database as other parts of Saleor, which comes with both pros and cons, making it easy to synchronise content at cost of additional db load. It should be your backend of choice if in doubt as its less complex and easier to maintain. Continue reading on dedicated doc :doc:`postgresql_search`.+Your preference for search backend might depend heavily on project details. PostgreSQL search uses same database as other parts of Saleor, which comes with both pros and cons, making it easy to synchronise content at cost of additional db load. It should be your backend of choice if in doubt as its less complex and easier to maintain. Continue reading on dedicated doc :doc:`postgres_search`.++Elasticsearch service offers a lot of advanced features, such as boosting to tune the relevance of a query or "more like this" queries. See `official website <https://www.elastic.co/products/elasticsearch>`_ to read more about its rich features. To configure elasticsearch in Saleor see :doc:`elasticsearch`.+-Elasticsearch service offers a lot of advanced features, such as boosting to tune the relevance of a query or "more like this" queries. See `official website <https://www.elastic.co/products/elasticsearch>` to read more about its rich features. To configure elasticsearch in Saleor see :doc:`elasticsearch`.diff --git a/docs/elasticsearch.rst b/docs/elasticsearch.rstindex b57adae851..3be14b2739 100644--- a/docs/elasticsearch.rst+++ b/docs/elasticsearch.rst@@ -45,7 +45,7 @@ Search integration architectureSearch 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/mirumee/saleor/blob/master/saleor/search/backends/elasticsearch_storefront.py>`_ and `dashboard <https://github.com/mirumee/saleor/blob/master/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.Testingdiff --git a/docs/index.rst b/docs/index.rstindex dfb7258f99..62d5cbe147 100644--- a/docs/index.rst+++ b/docs/index.rst@@ -13,7 +13,7 @@ Contents:productsstocksettings- search+ contentsearchlocalizationseopaymentsdiff --git a/docs/postgres_search.rst b/docs/postgres_search.rstindex 5bc1f0da0a..3add5b4155 100644--- a/docs/postgres_search.rst+++ b/docs/postgres_search.rst@@ -19,17 +19,17 @@ PostgreSQL search is enabled by default if Elasticsearch is not configured. No eData indexing--------------Index is not essential for postgres search. For performance optimization reasons `PostgreSQL Gin index <https://www.postgresql.org/docs/current/static/gin.html>` is created by default on product model for name and description field. Index usage is transparent to user and no additional action is required for index to stay up to date.+Index is not essential for postgres search. For performance optimization reasons `PostgreSQL Gin index <https://www.postgresql.org/docs/current/static/gin.html>`_ is created by default on product model for name and description field. Index usage is transparent to user and no additional action is required for index to stay up to date.Search integration architecture--------------------------------There are two backend modules defined in saleor/search/backends, one for storefront and one for dashboard search. There is picker module in backends package for picking right backend, depending on configuration.+There are two backend modules defined in `backends <https://github.com/mirumee/saleor/tree/master/saleor/search/backends>`_, one for storefront and one for dashboard search. There is picker module in backends package for picking right backend, depending on configuration.Testing--------Virtually all testing is done in `integration test suite <https://github.com/github/saleor/blob/master/saleor/tests/test_postgresql_search.py>`.+Virtually all testing is done in `integration test suite <https://github.com/mirumee/saleor/blob/master/tests/test_postgresql_search.py>`_.