I want to query multiple types and indices using Elasticsearch PHP API. but I don't Know how.
should I pass an array of types and indices to $params
? :
$params['index'] = $index;//array of indices
$params['type'] = $types;//array of types
$params['body'] = $q;//query body
//request elasticsearch for matched documents
$results = $client->search($params);