0
我遇到了一些結合cutoff_frequency與「和」運算符的彈性搜索查詢,但這對我沒有意義。Elasticsearch:將cutoff_frequency與運算符相結合?
這是布爾查詢的一部分:
{
"match": {
"content": {
"query": "I has candy and cake",
"cutoff_frequency": 0.001,
"operator": "and"
}
}
}
並根據本文檔中cutoff_frequency會(視文件,但最有可能的)轉換成以下這一點;
{
"bool": {
"must": {
"bool": {
"should": [
{ "term": { "text": "candy" }},
{ "term": { "text": "cake" }}
]
}
},
"should": {
"bool": {
"should": [
{ "term": { "text": "I" }},
{ "term": { "text": "has" }},
{ "term": { "text": "and" }}
]
}
}
}
}
但是,因爲有一個「和」操作符添加到查詢會發生什麼?這是否意味着「cutoff_frequency」沒有效果?
所以「是僅在這兩個術語匹配」以上,如果我的所有低頻詞彙(糖果,蛋糕)都在文檔中,高頻詞彙(I,has,and)將只對評分有貢獻? –