IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Search for a document
editSearch for a document
editSearching is a hallmark of elasticsearch, so let’s perform a search. We are going to use the Match query as a demonstration:
$searchParams['index'] = 'my_index'; $searchParams['type'] = 'my_type'; $searchParams['body']['query']['match']['testField'] = 'abc'; $retDoc = $client->search($searchParams);