IndexResponse response = client.prepareIndex(getIndex().name(), getType().name())
.setSource(JSONUtil.toJSON(e), XContentType.SMILE).get();
SMILE : The jackson based smile binary format. Fast and compact binary format.
JSON:A JSON based content type.
请问在文档索引的时候XContentType应该选JSON还是SMILE,看了解释也不是很理解 这两个有什么区别?
1 个回复
strglee
赞同来自: