Let us introduce a new tool that can help you migrate your data from Elasticsearch to Manticore Search - https://github.com/manticoresoftware/es2ms .
This tool automates copying data from Elasticsearch to Manticore Search
Requirements
- Elasticsearch dump tool : https://github.com/elasticsearch-dump/elasticsearch-dump
- Elasticsearch and Manticore PHP clients
Install
composer update
Usage
Migrate all indexes:
php migrator.php
Migrate certain indexes:
php migrator.php --elasticsearch.host=my.domain.com --elasticsearch.port=9200 --indexes=index1,index2
Parameters
indexes
- list of ES index names, separated by comma. Default: migrate all indexes availabledryrun
- perform a dry run without migrating anything. It prints information about available ES indexesonlyschemas
- only create the index(es), no data migrationonlydata
- migrate the data, assume indexes are already createdelasticsearch.host
- ES host, default: 127.0.0.1elasticsearch.port
- ES port, default:92000
elasticsearch.user
- ES username, no defaultelasticsearch.pass
- ES password, no defaultelasticsearch.batch_size
- How many ES documents to retrieve per round (default 10000)manticoresearch.host
- Manticore host, default: 127.0.0.1manticoresearch.port
- Manticore HTTP port, default: 9308manticoresearch.batch_size
- How many documents to group in a single INSERT batch in Manticore (default 10000)limit
- limit the number of documents from an index for migration (default 0 - migrate all )threads
- use multiple parallel workers to process the indexes (each worker process one index at a time), default is 1types.*
- allows overriding settings for a data type ( see Data type tranformation)log
- log file path; default is ‘stdout’ - output to consoleconfig
- read parameters from a config file in json format
Parameters read from a config file can be overridden by values provided as command line arguments
php migrator.php --config config.sample.json --threads=2