IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
get
editget
editclient.get([params, [callback]])
Get a typed JSON document from the index based on its id.
Check the API Conventions and the elasticsearch docs for more information pertaining to this method.
Get /myindex/mytype/1
.
const response = await client.get({ index: 'myindex', type: 'mytype', id: 1 });
Params
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|