嘗試設置映射我收到此錯誤..彈性錯誤而設置映射
壓縮機檢測只能叫上一些xcontent字節或壓縮xcontent字節
XContentBuilder mapping = XContentFactory.jsonBuilder()
.startObject("mydocuments")
.startObject("mytype")
.startObject("properties")
.startObject("blob_field")
.field("type", "string")
.field("index", "not_analyzed")
.endObject()
.endObject()
.endObject()
.endObject();
PutMappingResponse putMappingResponse = client.admin().indices()
.preparePutMapping("mydocuments")
.setType("mytype")
.setSource(mapping)
.execute().actionGet();
@ user3549576你可以試試這個嗎? – Val