其他问题
1:要确保运行ES的服务器存储可用空间在10%以上,否则无法创建索引
2: 创建mappings时不能添加多个类型否侧会反馈以下错误:
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [people2] as the final mapping would have more than 1 type: [woman, man]"
3:重复创建索引会返回以下错误:
{
"error": {
"root_cause": [
{
"type": "resource_already_exists_exception",
"reason": "index [people/wooBwVX0T7CFaij7aVUVvw] already exists",
"index_uuid": "wooBwVX0T7CFaij7aVUVvw",
"index": "people"
}
],
"type": "resource_already_exists_exception",
"reason": "index [people/wooBwVX0T7CFaij7aVUVvw] already exists",
"index_uuid": "wooBwVX0T7CFaij7aVUVvw",
"index": "people"
},
"status": 400
}
3,设定为keyword类型的属性不能被模糊匹配
4,term与match相比都能模糊匹配,但对于长一点的text内容,term不能匹配,?