身安不如心安,屋宽不如心宽 。

请问如何用javaAPI创建索引后实现下图的put操作

Elasticsearch | 作者 xiangxiaolu | 发布于2019年01月09日 | 阅读数:1179

PUT messagerecord
{
"settings": {
"analysis": {
"analyzer": {
"my_english_analyzer": {
"type": "standard",
"max_token_length": 5,
"stopwords": "_english_"
}
}
}
},
"mappings": {
"messagerecord": {
"properties": {
"content": {
"type": "text",
"store": true,
"analyzer":
"my_english_analyzer"
}
}
}
}
}
已邀请:

rochy - rochy_he

赞同来自: xiangxiaolu

请参考官方文档:Update Indices Settings
https://www.elastic.co/guide/e ... .html

xiangxiaolu - 菜鸟

赞同来自:

如下图,我需要在建mapping之前put  setting,但是我找了好久还是不知道javaAPI怎么实现,求助!

要回复问题请先登录注册