Skip to content

Instantly share code, notes, and snippets.

@talfco
Last active May 21, 2020 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talfco/4b382bb13fa8ea50158b890f53e2ea81 to your computer and use it in GitHub Desktop.
Save talfco/4b382bb13fa8ea50158b890f53e2ea81 to your computer and use it in GitHub Desktop.
public JsonObject readDocumentByIdAsObject(String index, String id) throws IOException{
return esClient.execute(new Get.Builder(index, id).build()).getJsonObject();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment