XContentBuilder

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.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.