- Java Transport Client (deprecated): other versions:
- Preface
- Javadoc
- Maven Repository
- Client
- Document APIs
- Search API
- Aggregations
- Query DSL
- Java API Administration
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Get API
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Get API
editThe 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 _doc`
, with id valued 1:
GetResponse response = client.prepareGet("twitter", "_doc", "1").get();
For more information on the get operation, check out the REST get docs.
Was this helpful?
Thank you for your feedback.