Is there a way to define mapping in java with a simple string?

Is there a way to simply pass mapping information in a json formatted
string "{... }" without having to create an object and do a bunch of .put
on it within Java?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c66a0784-29cc-4a42-958b-d7e189a0b17a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You can use string. See PutMappingRequest#source(String).

On March 26, 2015 at 05:30:58, Sai Asuka (asuka.shin@gmail.com) wrote:

Is there a way to simply pass mapping information in a json formatted string "{... }" without having to create an object and do a bunch of .put on it within Java?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c66a0784-29cc-4a42-958b-d7e189a0b17a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/etPan.5514c379.12200854.166%40citra-2.local.
For more options, visit https://groups.google.com/d/optout.