有个人长的像洋葱,走着走着就哭了…….

prefix query查询不精确

Elasticsearch | 作者 hnj1575565068 | 发布于2018年04月03日 | 阅读数:3056

{
"_shard": "[my_index][0]",
"_node": "BCW_eJ6ZQHKVhjpYAisuIg",
"_index": "my_index",
"_type": "my_type",
"_id": "3",
"_score": 1,
"_source": {
"title": "The quick brown fox jumps over the quick dog"
},
"_explanation": {
"value": 1,
"description": "title:brown*",
"details": []
}
},
{
"_shard": "[my_index][0]",
"_node": "BCW_eJ6ZQHKVhjpYAisuIg",
"_index": "my_index",
"_type": "my_type",
"_id": "4",
"_score": 1,
"_source": {
"title": "Brown fox brown dog"
},
"_explanation": {
"value": 1,
"description": "title:brown*",
"details": []
}
},
{
"_shard": "[my_index][0]",
"_node": "BCW_eJ6ZQHKVhjpYAisuIg",
"_index": "my_index",
"_type": "my_type",
"_id": "5",
"_score": 1,
"_source": {
"title": "brown"
},
"_explanation": {
"value": 1,
"description": "title:brown*",
"details": []
}
}
prefix query 是前缀查询,我的查询explain中也解释为brown*,但是为什么brown之前有term也会被查询出来,不是应该必须以brown开头吗?
已邀请:

strglee

赞同来自: hnj1575565068

查询语句贴一下

要回复问题请先登录注册