0ce3606f1dba490eef83c4317b315b62.asciidoc 268 B

12345678910111213141516
  1. // search/request-body.asciidoc:7
  2. [source, php]
  3. ----
  4. $params = [
  5. 'index' => 'twitter',
  6. 'body' => [
  7. 'query' => [
  8. 'term' => [
  9. 'user' => 'kimchy',
  10. ],
  11. ],
  12. ],
  13. ];
  14. $response = $client->search($params);
  15. ----