Word Frequency for search term

Hi,
I am trying to find word frequency suing query string. But in case search term is more than single word and field is of type text, then its returning incorrect results.
Like if my data is "This is word tied off" and with below query, its searching tied off as tied and off separately, returning doc.freq as 1 for tied and 1 for off, so total 2 for this document. I am expecting doc.freq as 1 as tied off matches one time.

"query": {
"bool": {
"must": [
{
"query_string": {
"query": ""tied off"",
"fields": [
"comments"
]
}
}
]
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.