Hi,
you can also retrieve the source as bytes through the getSourceRef method. You are right though. Jest uses Gson to map json to user provided objects. The high-level REST client doesn't do that. We don't want to have extra dependencies at this point, rather reduce them instead.
Looking at the Jest code it should be easy to do this from your application:
We are not currently planning on adding this feature to the client. Do let us know if this is a blocker for you or whether it is a reasonable decision.
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.