I've got a webapp, deployed on elastic beanstalk, that has an embedded
instance of elasticsearch. I want to write a healthcheck servlet to test
connectivity. I know that I can use the builtin health api, but I'm
wondering if this is really the droid I'm looking for.
Ultimately, I think I want to test that my transport client (in the webapp)
can connect to a node, execute a search, and not get an exception (such as
NoNodeAvailable). Of course, my results shouldn't matter, or depend on the
state of the index.
am I over thinking this? if not, what would an appropriate query be,
matchAll() with a size of 1?