36b2778f23d0955255f52c075c4d213d.asciidoc 553 B

1234567891011121314151617181920212223242526
  1. // docs/reindex.asciidoc:905
  2. [source, php]
  3. ----
  4. $params = [
  5. 'body' => [
  6. 'source' => [
  7. 'remote' => [
  8. 'host' => 'http://otherhost:9200',
  9. 'username' => 'user',
  10. 'password' => 'pass',
  11. ],
  12. 'index' => 'source',
  13. 'query' => [
  14. 'match' => [
  15. 'test' => 'data',
  16. ],
  17. ],
  18. ],
  19. 'dest' => [
  20. 'index' => 'dest',
  21. ],
  22. ],
  23. ];
  24. $response = $client->reindex($params);
  25. ----