I'm not sure how to handle errors when using the java client. How do I grammatically know if my connection was successful, or if indexing of a document succeeded? In Rest we have the http result code, but in java, I did not see a documented way to catch checked exceptions or anything like that. For connection assurance I use: return 0< client.admin().cluster().prepareState().get().getState(). getVersion(); Is that correct? is it effective? Can anyone please refer my to any documentation or relevant source code?
-- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f98a54e0-efb0-47f8-a391-e2ec3920a3d1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
