With the HLRC we were able to use XContentBuilder. For example:
XContentBuilder xContentBuilder = // create XContentBuilder; IndexRequest request = new IndexRequest("index").id(id).source(xContentBuilder);
Basically we were creating custom JSON to index. Can you recommend the best way to do this with the new Java API Client? Thanks.