POST /test/topic/_search
{
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "Predisposition",
"fields": [
"_all"
]
}
},
{
"multi_match": {
"query": "thrombosis",
"fields": [
"_all"
]
}
}
],
"should": [
{
"multi_match": {
"query": "cancer",
"fields": [
"_all"
]
}
}
]
}
}
}
我的上述查詢的理解是,它必須在predisposition
AND
thrombosis
OR
cancer
匹配,但是我只得到的匹配predisposition
AND
thrombosis
的文檔了一把,我期待大量cancer
文件但零。我錯過了什麼?布爾查詢工作不正常