Skip to main content
Version: 5.3

collect

Description

Exports data to the specified index.

Syntax

| collect index=<string>

Required Arguments

ParameterSyntaxDescription
indexindex=<string>The index to which the data will be exported.

Examples

Example 1

This example demonstrates the basic usage of the collect command to create a backup copy of data. The command performs the following operations:

  1. Retrieves all data from the apple index using the source command
  2. Copies the retrieved data to a new index apple_copy
source apple
| collect index=apple_copy