You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/cli.md
+5-31Lines changed: 5 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -182,49 +182,23 @@ quickwit index create --endpoint=http://127.0.0.1:7280 --index-config wikipedia_
182
182
183
183
### index update
184
184
185
+
Updates an index using an index config file.
185
186
`quickwit index update [args]`
186
-
#### index update search-settings
187
-
188
-
Updates default search settings.
189
-
`quickwit index update search-settings [args]`
190
187
191
188
*Synopsis*
192
189
193
190
```bash
194
-
quickwit index update search-settings
191
+
quickwit index update
195
192
--index <index>
196
-
--default-search-fields <default-search-fields>
197
-
```
198
-
199
-
*Options*
200
-
201
-
| Option | Description |
202
-
|-----------------|-------------|
203
-
|`--index`| ID of the target index |
204
-
|`--default-search-fields`| List of fields that Quickwit will search into if the user query does not explicitly target a field. Space-separated list, e.g. "field1 field2". If no value is provided, existing defaults are removed and queries without target field will fail. |
205
-
#### index update retention-policy
206
-
207
-
Configure or disable the retention policy.
208
-
`quickwit index update retention-policy [args]`
209
-
210
-
*Synopsis*
211
-
212
-
```bash
213
-
quickwit index update retention-policy
214
-
--index <index>
215
-
[--period <period>]
216
-
[--schedule <schedule>]
217
-
[--disable]
193
+
--index-config <index-config>
218
194
```
219
195
220
196
*Options*
221
197
222
198
| Option | Description |
223
199
|-----------------|-------------|
224
200
|`--index`| ID of the target index |
225
-
|`--period`| Duration after which splits are dropped. Expressed in a human-readable way (`1 day`, `2 hours`, `1 week`, ...) |
226
-
|`--schedule`| Frequency at which the retention policy is evaluated and applied. Expressed as a cron expression (0 0 * * * *) or human-readable form (hourly, daily, weekly, ...). |
227
-
|`--disable`| Disable the retention policy. Old indexed data will not be cleaned up anymore. |
201
+
|`--index-config`| Location of the index config file. |
228
202
### index clear
229
203
230
204
Clears an index: deletes all splits and resets checkpoint.
@@ -381,7 +355,7 @@ quickwit index ingest
381
355
|`--batch-size-limit`| Size limit of each submitted document batch. |
382
356
|`--wait`| Wait for all documents to be commited and available for search before exiting |
383
357
|`--force`| Force a commit after the last document is sent, and wait for all documents to be committed and available for search before exiting |
384
-
|`--commit-timeout`| Timeout for ingest operations that require waiting for the final commit (`--wait` or `--force`). This is different from the `commit_timeout_secs` indexing setting which sets the maximum time before commiting splits after their creation. |
358
+
|`--commit-timeout`| Timeout for ingest operations that require waiting for the final commit (`--wait` or `--force`). This is different from the `commit_timeout_secs` indexing setting, which sets the maximum time before commiting splits after their creation. |
.about("Updates an index using an index config file.")
84
+
.long_about("This command follows PUT semantics, which means that all the fields of the current configuration are replaced by the values specified in this request or the associated defaults. In particular, if the field is optional (e.g. `retention_policy`), omitting it will delete the associated configuration. If the new configuration file contains updates that cannot be applied, the request fails, and none of the updates are applied.")
85
+
.args(&[
86
+
arg!(--index <INDEX> "ID of the target index")
87
+
.display_order(1)
88
+
.required(true),
89
+
arg!(--"index-config" <INDEX_CONFIG> "Location of the index config file.")
0 commit comments