Skip to content

Commit 32bc7e7

Browse files
authored
Updated management command documentation for alias commands (django-es#446)
1 parent 2415942 commit 32bc7e7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/source/management.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Create the indices and their mapping in Elasticsearch:
1414

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

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

1919
::
2020

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

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

29+
Recreate and repopulate the indices using aliases:
30+
31+
::
32+
33+
$ search_index --rebuild --use-alias [--models [app[.model] app[.model] ...]] [--parallel] [--refresh]
34+
35+
Recreate and repopulate the indices using aliases, but not deleting the indices that previously pointed to the aliases:
36+
37+
::
38+
39+
$ search_index --rebuild --use-alias --use-alias-keep-index [--models [app[.model] app[.model] ...]] [--parallel] [--refresh]

0 commit comments

Comments
 (0)