elasticsearch-dump is a command line tool for importing, exporting, and transferring data between Elasticsearch and OpenSearch instances. It functions as an index dump utility that saves documents, mappings, and analyzers to local files or standard output.
The tool enables the movement of data between clusters using local files as an intermediary and can flatten nested JSON documents into CSV files for external analysis. It allows for the modification or anonymization of documents during the transfer process through the use of custom JavaScript functions.
The utility covers data extraction and migration, supporting the backup of search indices and the synchronization of data between remote instances. It can resolve target indices using regular expressions and filter exported documents via search queries.