你可以的,加油

多字段mapping的API

Elasticsearch | 作者 qqq1234567 | 发布于2018年11月21日 | 阅读数:1222

"content": {
"type": "text",
"fields": {
"content_key": {
"type": "keyword"
}
}
}
类似于这样的mapping用java是怎么设置的
已邀请:

rochy - rochy_he

赞同来自:

在 java 里面你可以使用 httpClient 执行 PUT 操作即可,或者使用 restClient 的低阶 api
完整的案例:
PUT twitter/_mapping/_doc 
{
"properties": {
"email": {
"type": "keyword"
}
}
}

要回复问题请先登录注册