美文网首页
ElasticSearch

ElasticSearch

作者: Fans2017 | 来源:发表于2022-11-23 13:52 被阅读0次

常见问题
1、bool 查询拼接太多了,es默认拼接上限设置为1024

查看索引
GET /索引名

添加新字段
PUT /索引名/_mapping
{
"properties": {
"hight": {
"type": "integer"
}
}
}

更新数据
POST 索引名/_update/主键ID?refresh=true
{
"doc": {
"name": "student-123"
}
}

创建索引
PUT /索引名/_mapping
{
"properties": {
“字段名”: {
"type": "integer | text | Long | keyword | properties(嵌套json) |字段类型”
}
}
}

相关文章

网友评论

      本文标题:ElasticSearch

      本文链接:https://www.haomeiwen.com/subject/hqgoxdtx.html