Skip to content

Commit f669009

Browse files
committed
[DOCS] Add type parms with warnings
1 parent fabbff1 commit f669009

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/reference/docs/reindex.asciidoc

+25
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,18 @@ Use in conjunction with `max_docs` to control what documents are reindexed.
484484
Set to a list to reindex select fields.
485485
Defaults to `true`.
486486

487+
`type`:::
488+
(Optional, string)
489+
deprecated:[6.0.0,Types are deprecated and in the process of being removed. See <<removal-of-types>>.]
490+
<<mapping-type-field,Document type>> to reindex.
491+
+
492+
[WARNING]
493+
====
494+
By default, all reindexed documents are assigned the `_doc` document type. To
495+
preserve other document types during a reindex, specify the `type` in the `dest`
496+
index.
497+
====
498+
487499
`dest`::
488500
`index`:::
489501
(Required, string) The name of the index you are copying _to_.
@@ -497,9 +509,22 @@ See <<index-version-types>> for more information.
497509
(Optional, enum) Set to create to only index documents that do not already exist (put if absent).
498510
Valid values: `index`, `create`. Defaults to `index`.
499511

512+
`type`:::
513+
(Optional, string)
514+
deprecated:[6.0.0,Types are deprecated and in the process of being removed. See <<removal-of-types>>.]
515+
<<mapping-type-field,Document type>> for reindexed documents.
516+
Defaults to `_doc`.
517+
+
518+
[WARNING]
519+
====
520+
By default, all reindexed documents are assigned the `_doc` document type.
521+
To preserve other document types, this parameter must be specified.
522+
====
523+
500524
`script`::
501525
`source`:::
502526
(Optional, string) The script to run to update the document source or metadata when reindexing.
527+
503528
`lang`:::
504529
(Optional, enum) The script language: `painless`, `expression`, `mustache`, `java`.
505530
For more information, see <<modules-scripting>>.

0 commit comments

Comments
 (0)