in ElasticSearch by (31.7k points)

What is the syntax or code to retrieve a document by ID in Elasticsearch?

1 Answer

0 votes
by (31.7k points)

GET API retrieves the specified JSON document from an index.

Syntax:

_______________________________

GET <index_name>/_doc/<_id>

Related questions

+1 vote
+1 vote
asked Feb 24 in ElasticSearch by rajeshsharma (23.9k points)
+1 vote
asked Feb 24 in ElasticSearch by rajeshsharma (23.9k points)
+1 vote
asked Jul 10, 2022 in ElasticSearch by sharadyadav1986 (31.7k points)
...