My problem
Consider the following query:
"query": {
"query_string": {
"query: "WORD_A WORD_B",
"default_operator": "AND"
}
}
I have this query in one of our systems, and I wonder whether the query is exact. By exact I mean that only documents with WORD_A
and WORD_B
should return, but never documents with just one word, similar words or no matching word at all.
What have I tried
RTFM. Perhaps I'm reading the wrong page, but I did not find a reference to this question.
Environment
Elastic 5.6.3.
My question
Is the abovememtioned query exact, meaning that it will term only documents that strictly match the query
?