New

The executive guide to generative AI

Read more

Getting Documents

edit

Elasticsearch provides realtime GETs of documents. This means that as soon as the document has been indexed and your client receives an acknowledgement, you can immediately retrieve the document from any shard. Get operations are performed by requesting a document by it’s full index/type/id path:

$params = [
    'index' => 'my_index',
    'type' => 'my_type',
    'id' => 'my_id'
];

// Get doc at /my_index/my_type/my_id
$response = $client->get($params);


Was this helpful?
Feedback