client.admin().indices().prepareCreate("test_index")
.addMapping("test_type", "{\n" +
" \"test_type\": {\n" +
" \"properties\": {\n" +
" \"test_filed\": {\n" +
" \"type\": \"abc\"\n" +
" }\n" +
" }\n" +
" }\n" +
" }")
.get();
我想在设置映射时自定义数据类型,例如abc,所以我可以将它存储到es中, 如何修改源代码?