ElasticSearch

2022-11-23  本文已影响0人  Fans2017

常见问题
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) |字段类型”
}
}
}

上一篇 下一篇

猜你喜欢

热点阅读