I have come across some elasticsearch queries combining cutoff_frequency with the "and" operator, but this does not make sense to me.
This is part of the bool query:
{
"match": {
"content": {
"query": "I has candy and cake",
"cutoff_frequency": 0.001,
"operator": "and"
}
}
}
And according to this documentation the cutoff_frequency will (depending on the documents, but most likely) transform this into the following;
{
"bool": {
"must": {
"bool": {
"should": [
{ "term": { "text": "candy" }},
{ "term": { "text": "cake" }}
]
}
},
"should": {
"bool": {
"should": [
{ "term": { "text": "I" }},
{ "term": { "text": "has" }},
{ "term": { "text": "and" }}
]
}
}
}
}
But what happens since there is an "and" operator added to the query? Does this mean that the "cutoff_frequency" has no effect?