查询首先分析查询字符串以生成术语列表。然后,它搜索所有术语,但仅将包含所有搜索术语的文档相对于彼此放置在相同的位置
{
"fields": ["title"],
"query": {
"bool": {
"should": [{
"match": {
"title": "SEO"
}
}],
"must": [{
"match": {
"content": {
"query": "Marketing in social networks",
"type": "phrase"
}
}
}]
}
}
}
PS:我还没有尝试过。