I want to request several types and indexes using the Elasticearch PHP API . but I donβt know how to do it. should 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);
types api php search elasticsearch
Ramin
source share