From 1bce98795e4306859abd60642c2f39c8d205fb01 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Thu, 18 Sep 2014 10:37:09 +0100 Subject: [PATCH] Docs for update_index --backend option --- docs/reference/management_commands.rst | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/reference/management_commands.rst b/docs/reference/management_commands.rst index 18358a8699..9daffaccef 100644 --- a/docs/reference/management_commands.rst +++ b/docs/reference/management_commands.rst @@ -47,7 +47,7 @@ Options: update_index ------------ -:code:`./manage.py update_index` +:code:`./manage.py update_index [--backend ]` 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