Skip to content

Commit cb83617

Browse files
authored
Adding documentation for parallel indexing (#221)
1 parent ba441ce commit cb83617

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Features
2727
- Management commands for creating, deleting, rebuilding and populating indices.
2828
- Elasticsearch auto mapping from django models fields.
2929
- Complex field type support (ObjectField, NestedField).
30+
- Index fast using `parallel` indexing.
3031
- Requirements
3132

3233
- Django >= 1.11

docs/source/es_index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ When you execute the command::
5656

5757
This will create two index named ``cars`` and ``manufacture``
5858
in Elasticsearch with appropriate mapping.
59+
60+
** If your model have huge amount of data, its preferred to use `parallel` indexing.
61+
To do that, you can pass `--parallel` flag while reindexing or populating.
62+
**

docs/source/management.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Populate the Elasticsearch mappings with the django models data (index need to b
1818

1919
::
2020

21-
$ search_index --populate [--models [app[.model] app[.model] ...]]
21+
$ search_index --populate [--models [app[.model] app[.model] ...]] [--parallel]
2222

2323
Recreate and repopulate the indices:
2424

2525
::
2626

27-
$ search_index --rebuild [-f] [--models [app[.model] app[.model] ...]]
27+
$ search_index --rebuild [-f] [--models [app[.model] app[.model] ...]] [--parallel]
2828

0 commit comments

Comments
 (0)