I have encountered a strange thing while trying to use fields:
option in a "query_string" query:
Let's assume we have an entity and when using a query such as:
"query_string" : {
"default_operator" : "AND",
"query" : "the thing"
}
it returns some documents.
But for a strange reason, when I post the same query but list all the fields explicitly, it doesn't work anymore, i.e.,
"query_string" : {
"default_operator" : "AND",
"fields" : ["description",
"short_description",
"title"],
"query" : "the thing"
}
However, if I change the default_operator:
"query_string" : {
"default_operator" : "OR",
"fields" : ["description",
"short_description",
"title"],
"query" : "the thing"
}
It does work again. Can someone explain why?