writeValueAsString(object).
getBytes()).
execute().
actionGet();
}
<BUG>public static IndexResponse add(String index, String type, String id, Object object) throws JsonProcessingException {
return Common.elasticsearchClient.prepareIndex(index, type)</BUG>
.setSource(mapper.writeValueAsBytes(object))
.setId(id)
.execute()

writeValueAsString(object).
getBytes()).
execute().
actionGet();
}
public static IndexResponse add(String index, String type, String id, Object object)
throws JsonProcessingException {
return Common.elasticsearchClient.prepareIndex(index, type)
.setSource(mapper.writeValueAsBytes(object))
.setId(id)
.execute()
