Docs for update_index --backend option

pull/556/head
Karl Hobley 2014-09-18 10:37:09 +01:00
rodzic 64245e9c1a
commit 1bce98795e
1 zmienionych plików z 19 dodań i 1 usunięć

Wyświetl plik

@ -47,7 +47,7 @@ Options:
update_index
------------
:code:`./manage.py update_index`
:code:`./manage.py update_index [--backend <backend name>]`
This command rebuilds the search index from scratch. It is only required when using Elasticsearch.
@ -59,6 +59,24 @@ It is recommended to run this command once a week and at the following times:
The search may not return any results while this command is running, so avoid running it at peak times.
Specifying which backend to update
``````````````````````````````````
.. versionadded:: 0.7
By default, ``update_index`` will rebuild all the search indexes listed in ``WAGTAILSEARCH_BACKENDS``.
If you have multiple backends and would only like to update one of them, you can use the ``--backend`` option.
For example, to update just the default backend:
.. code-block::
python manage.py update_index --backend default
.. _search_garbage_collect:
search_garbage_collect