{
"_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开头吗?
"_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开头吗?
1 个回复
strglee
赞同来自: hnj1575565068