- PHP Client: other versions:
- Overview
- Quickstart
- Installation
- Configuration
- Index Operations
- Indexing Operations
- Search Operations
- The Connection Pool
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Get a document
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Get a document
editLet’s get the document that we just indexed:
$getParams = array(); $getParams['index'] = 'my_index'; $getParams['type'] = 'my_type'; $getParams['id'] = 'my_id'; $retDoc = $client->get($getParams);
Was this helpful?
Thank you for your feedback.