From 60e2d81052469abb8108ee1afd813c1bdb226d6b Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Wed, 1 Jul 2015 14:36:50 +0100 Subject: [PATCH] Use search backend module imports in the docs --- docs/topics/search/backends.rst | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/topics/search/backends.rst b/docs/topics/search/backends.rst index 460dbd717..1e0a956ad 100644 --- a/docs/topics/search/backends.rst +++ b/docs/topics/search/backends.rst @@ -13,7 +13,7 @@ You can configure which backend to use with the ``WAGTAILSEARCH_BACKENDS`` setti WAGTAILSEARCH_BACKENDS = { 'default': { - 'BACKEND': 'wagtail.wagtailsearch.backends.db.DBSearch', + 'BACKEND': 'wagtail.wagtailsearch.backends.db', } } @@ -51,7 +51,11 @@ Here's a list of backends that Wagtail supports out of the box. Database Backend (default) -------------------------- -``wagtail.wagtailsearch.backends.db.DBSearch`` +``wagtail.wagtailsearch.backends.db`` + +.. versionchanged:: 1.1 + + Before 1.1, the full path to the backend class had to be specified: ``wagtail.wagtailsearch.backends.db.DBSearch`` The database backend is very basic and is intended only to be used in development and on small sites. It cannot order results by relevance making it not very useful when searching a large amount of pages. @@ -67,7 +71,11 @@ If any of these features are important to you, we recommend using Elasticsearch Elasticsearch Backend --------------------- -``wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch`` +``wagtail.wagtailsearch.backends.elasticsearch`` + +.. versionchanged:: 1.1 + + Before 1.1, the full path to the backend class had to be specified: ``wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch`` Prerequisites are the `Elasticsearch`_ service itself and, via pip, the `elasticsearch-py`_ package: