I am trying to add a json document as a value in a field using the
IndexResponse response = client
.field("date", new Date())
By default elasticsearch assumes json is of type string and index the
whole documents as a single string.
Is there a way I can tell ES that this is a json document and specify
the specific fields to be indexed without having to iterate through
the entire object in code? Can I also store json as a child json
object rather than string?