mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 23:57:20 -04:00
This option is completely unused. Some places set it but we never read the value neither respect it.
14 lines
513 B
Text
14 lines
513 B
Text
[[java-docs-get]]
|
|
=== Get API
|
|
|
|
The get API allows to get a typed JSON document from the index based on
|
|
its id. The following example gets a JSON document from an index called
|
|
twitter, under a type called tweet, with id valued 1:
|
|
|
|
[source,java]
|
|
--------------------------------------------------
|
|
GetResponse response = client.prepareGet("twitter", "tweet", "1").get();
|
|
--------------------------------------------------
|
|
|
|
For more information on the get operation, check out the REST
|
|
{ref}/docs-get.html[get] docs.
|