can you make sure your mapping is correct? I tried reproducing this with a minimal example (see below). The Query is what you'd get when you send the rest output of your java example to a cluster. This doesn't return the error you described but returns the document:
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.