Also, is there some publicly available 'examples' repository for ES where I can look for such issues? Currently, very few such working examples are available on the Internet that use 2.x version of ES and it's very difficult to build a working example by reading just a few lines of code in the documentation.
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.