1. POST _reindex
    2. {
    3. "source": {
    4. "remote": {
    5. "host": "http://124.251.115.33:9200"
    6. },
    7. "index": "article",
    8. "dest": {
    9. "index": "article"
    10. }
    11. }
    12. curl -XPOST 172.18.0.21:9200/_reindex -H "Content-Type: application/json" -d'{"source":{"remote":{"host":"http://124.251.115.33:9200"},"index":"article","dest":{"index":"article"}}}'
    13. curl -X POST "localhost:9200/_reindex?pretty" -H 'Content-Type: application/json' -d'
    14. {"source":{"remote":{"host":"http://124.251.115.33:9200"},"index":"article","query":{"match":{"account_id":""}}},"dest":{"index":"article"}}'
    15. curl -X POST "localhost:9200/_reindex?pretty" -H 'Content-Type: application/json' -d'
    16. {"source":{"remote":{"host":"http://124.251.115.33:9200"},"index":"statistics"},"dest":{"index":"statistics"}}'