Skip to content

Commit

Permalink
Updated management command documentation for alias commands (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
oehrlein committed May 17, 2023
1 parent 2415942 commit 32bc7e7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/source/management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Create the indices and their mapping in Elasticsearch:

$ search_index --create [--models [app[.model] app[.model] ...]]

Populate the Elasticsearch mappings with the django models data (index need to be existing):
Populate the Elasticsearch mappings with the Django models data (index need to be existing):

::

Expand All @@ -26,3 +26,14 @@ Recreate and repopulate the indices:

$ search_index --rebuild [-f] [--models [app[.model] app[.model] ...]] [--parallel] [--refresh]

Recreate and repopulate the indices using aliases:

::

$ search_index --rebuild --use-alias [--models [app[.model] app[.model] ...]] [--parallel] [--refresh]

Recreate and repopulate the indices using aliases, but not deleting the indices that previously pointed to the aliases:

::

$ search_index --rebuild --use-alias --use-alias-keep-index [--models [app[.model] app[.model] ...]] [--parallel] [--refresh]

0 comments on commit 32bc7e7

Please sign in to comment.