Files
elasticsearch-js/docs/reference/api/ReindexSource.md
2025-05-28 10:02:30 -05:00

1.5 KiB

ReindexSource [interface-ReindexSource]

Name Type Description
_source Fields If true, reindex all source fields. Set it to a list to reindex select fields.
index Indices The name of the data stream, index, or alias you are copying from. It accepts a comma-separated list to reindex from multiple sources.
query QueryDslQueryContainer The documents to reindex, which is defined with Query DSL.
remote ReindexRemoteSource A remote instance of Elasticsearch that you want to index from.
runtime_mappings MappingRuntimeFields  
size integer The number of documents to index per batch. Use it when you are indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB.
slice SlicedScroll Slice the reindex request manually using the provided slice ID and total number of slices.
sort Sort A comma-separated list of <field>:<direction> pairs to sort by before indexing. Use it in conjunction with max_docs to control what documents are reindexed. WARNING: Sort in reindex is deprecated. Sorting in reindex was never guaranteed to index documents in order and prevents further development of reindex such as resilience and performance improvements. If used in combination with max_docs, consider using a query filter instead.