Agree that at the very least the Rest Client should provide an Interface to allow unit tests to be mocked out.
On the other thread, it's pointed out that a really shallow layer of abstraction should be applied, but then one could not verify the interactions with the ES Client, making the layer of abstraction pretty much useless.
Adding an interface that fulfills Client or RestClient would be optimal for testing and extensibility.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.