短语匹配
使用match_phrase
GET /my_index/my_type/_search
{
"query": {
"match_phrase": {
"title": "quick brown fox"
}
}
}
也可以用match查询,给其加上type
"match": {
"title": {
"query": "quick brown fox",
"type": "phrase"
}
}