How to copy and paste data

Hi team,

How to merges data from cluster A to cluster B?
i use
POST /_snapshot/backup/snapshot_one/_restore
{
"indices": "news",
"ignore_unavailable": "true"

}

but it will overwrite my original data inside the nodes.
How to only copy and paste the index?

Thanks and best regards
Sharon

May be reindex from remote API can help

Hi...
Reindex mean my original index name rename?

POST /_reindex
{
"source": {
"index": "news"
},
"dest": {
"index": "news_data"
}
}
For example: my current index name is /news/, after reindex will be "/news_data",

is correct my understanding?
Sorry ya, i already saw this command before, but i not very understand about reindexx..

Thanks

You can reindex from another cluster

The command is as below right:

POST _reindex
{
"source": {
"remote": {
"host": "http://otherhost:9200",
"username": "user",
"password": "pass"
},
"index": "source",
"query": {
"match": {
"test": "data"
}
}
},
"dest": {
"index": "dest"
}
}

for host, how to configuration if local host to local host, and 9200 is same?
"host": "http://otherhost:9200",

is this "test": "data" is default? what meaning of it?

You said you want to merge from cluster A to cluster B? So you have different nodes, right?

I need merge together into same nodes.
Mean is my data at D:\Backup_data, but this backup data need paste into elasticsearch 2.4 D:\elasticsearch\data\elasticsearch\nodes\0\indices\news.
i need only paste into same index without affected my current data at elasticsearch 2.4 and without change index name.

I'm sorry for confuse you all..

Thanks and best regards
Sharon

Merging data on file system level is not possible.

If you have 2 clusters you can read from one the documents and index them into the second cluster. So technically it will "merge" data on a document level.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.