There is no difference when it comes to code execution, it is just that ES
has more than one API style.
prepareIndex() uses an IndexRequestBuilder behind the scenes, and follows a
kind of a "fluent interface" with a builder pattern
A more verbose example of prepareIndex() would be
client.prepareIndex().setIndex(index).setType(type).setId(id).setSource(source).execute().actionGet()
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.