i am working on aws elasticsearch 6.2 and laravel framework
my code
$hosts=[
'host' => 'localhost(here i am using aws end point)'
// Only host is required
];
$client = ClientBuilder::create() // Instantiate a new ClientBuilder
->setHosts($hosts) // Set the hosts
->build();
dump($client);
$json = '{
"query" : {
"match" : {
"title" : "phone"
}
}
}';
$params['index'] = 'sainikad';
$params['type'] = 'ads';
$params['body'] = $json;
$results=$client->search($params);
the error i was getting is
Symfony\Component\Debug\Exception\FatalErrorException: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\sainik\vendor\guzzlehttp\ringphp\src\Client\CurlHandler.php:90
and dump clientbuilder was getting response as
Client {#419 ▼
+transport: Transport {#417
}
#params: null
#indices: IndicesNamespace {#420
}
#cluster: ClusterNamespace {#421
}
#nodes: NodesNamespace {#422
}
#snapshot: SnapshotNamespace {#423
}
#cat: CatNamespace {#424
}
#ingest: IngestNamespace {#425
}
#tasks: TasksNamespace {#426
}
#remote: RemoteNamespace {#427
}
#endpoints: Closure {#418
}
#registeredNamespaces: []
}