Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure PutMappingRequest.buildFromSimplifiedDef input are pairs #19837
Aug 5, 2016
It looks like documentation for 6.1 is not up to date : https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin-indices.html
How should we build a PutMappingRequest from json source as String now?
@sfalquier thanks for the note, I think you are right about the docs needing an update, can you create a separate issue please and include a short description of you what you think is missing?
The setSource(String source) method has been deprecated in #22691 (version 5.3) in favour of #setSource(String, XContentType). So with a json source you would probably want to use