@@ -60,9 +60,10 @@ positional arguments:
6060 INDEX Only manage the given indices.
6161
6262optional arguments:
63- -h, --help show this help message and exit
64- --force Do not ask for confirmation.
65- --ignore-error Do not stop on error.
63+ -h, --help show this help message and exit
64+ -u USING, --using USING Alias of the OpenSearch connection to use. Default to 'default'.
65+ --force Do not ask for confirmation.
66+ --ignore-error Do not stop on error.
6667```
6768
6869### Description
@@ -80,11 +81,15 @@ created/deleted. If no index is provided, the action is applied to all indices.
8081Use the ` --force ` options to bypass the confirmation step, and use the ` --ignore-error ` option to not stop on error (such as
8182trying to create an already created index).
8283
84+ You can specify which Opensearch connection to use with the ` --using ` option.
85+
8386## ` list ` Subcommand
8487
8588The ` list ` subcommand displays a summary of each index, indicated whether they are created or not, and the number of
8689document indexed.
8790
91+ You can specify which Opensearch connection to use with the ` --using ` option.
92+
8893Sample output :
8994
9095``` text
@@ -110,32 +115,33 @@ positional arguments:
110115 {index,delete,update}
111116 Whether you want to create, delete or rebuild the indices.
112117
113- optional arguments :
118+ options :
114119 -h, --help show this help message and exit
115- -f [FILTERS [FILTERS ...]], --filters [FILTERS [FILTERS ...]]
116- Filter object in the queryset. Argument must be formatted as
117- '[lookup]=[value]', e.g. 'document_date__gte=2020-05-21. The accepted
118- value type are:
119- - 'None' ('[lookup]=')
120- - 'float' ('[lookup]=1.12')
121- - 'int' ('[lookup]=23')
122- - 'datetime.date' ('[lookup]=2020-10-08')
123- - 'list' ('[lookup]=1,2,3,4') Value between comma ',' can be of any
124- other accepted value type
125- - 'str' ('[lookup]=week')
126- Values that didn't match any type above will be interpreted as a str.
127- The list of lookup function can be found here:
128- https://docs.djangoproject.com/en/dev/ref/models/querysets/#field-lookups
129- -e [EXCLUDES [EXCLUDES ...]], --excludes [EXCLUDES [EXCLUDES ...]]
130- Exclude objects from the queryset. Argument must be formatted as
131- '[lookup]=[value]', see '--filters' for more information.
120+ -u USING, --using USING
121+ Alias of the OpenSearch connection to use. Default to 'default'.
122+ -d DATABASE, --database DATABASE
123+ Nominates a database.
124+ -f [FILTERS ...], --filters [FILTERS ...]
125+ Filter object in the queryset. Argument must be formatted as '[lookup]=[value]', e.g. 'document_date__gte=2020-05-21.
126+ The accepted value type are:
127+ - 'None' ('[lookup]=')
128+ - 'float' ('[lookup]=1.12')
129+ - 'int' ('[lookup]=23')
130+ - 'datetime.date' ('[lookup]=2020-10-08')
131+ - 'list' ('[lookup]=1,2,3,4') Value between comma ',' can be of any other accepted value type
132+ - 'str' ('[lookup]=week') Value that didn't match any type above will be interpreted as a str
133+ The list of lookup function can be found here: https://docs.djangoproject.com/en/dev/ref/models/querysets/#field-lookups
134+ -e [EXCLUDES ...], --excludes [EXCLUDES ...]
135+ Exclude objects from the queryset. Argument must be formatted as '[lookup]=[value]', see '--filters' for more information
132136 --force Do not ask for confirmation.
133- -i [INDICES [INDICES ...]] , --indices [INDICES [INDICES ...] ]
137+ -i [INDICES ...], --indices [INDICES ...]
134138 Only update documents on the given indices.
135139 -c COUNT, --count COUNT
136140 Update at most COUNT objects (0 to index everything).
137- -p, --parallel Parallelize the communication with Opensearch.
138- -r, --refresh Make operations performed on the indices immediately available for search.
141+ -r, --refresh Whether the operations performed on the indices are immediately available for search. Default to `OPENSEARCH_DSL_AUTO_REFRESH` (which default to `False`)
142+ --no-refresh
143+ -p, --parallel Whether to run bulk operations in parallel. Default to `OPENSEARCH_DSL_PARALLEL` (which default to `False`)
144+ --no-parallel
139145 -m, --missing When used with 'index' action, only index documents not indexed yet.
140146```
141147
0 commit comments