直接输入命令(不要复制粘贴,手动输入,否则可能会报解析错误):
curl -H "Content-Type: application/json" -X POST http://127.0.0.1:9200/_reindex -d '{"source": {"index": "oldindex"}, "dest": {"index": "newindex", "op_type": "create"}}'
直接输入命令(不要复制粘贴,手动输入,否则可能会报解析错误):
curl -H "Content-Type: application/json" -X POST http://127.0.0.1:9200/_reindex -d '{"source": {"index": "oldindex"}, "dest": {"index": "newindex", "op_type": "create"}}'