Per the ES docs
where the title field contains quick or brown. If you omit the OR operator the default operator will be used
title:(quick OR brown)
title:(quick brown)
If I do
{
"query_string":{
"query":"guid:(string1 OR string2)",
"default_operator":"or"
}
}
I get 2 results (expected behavior, as there are 2 objects one each with the supplied value for that field). If I remove the 'or'
{
"query_string":{
"query":"guid:(string1 string2)",
"default_operator":"or"
}
}
I get 0 results. It does not appear to honor the default_operator as described in the docs? This used to work with ES 2.x but on updating to ES 6.3, no dice.
Interestingly, if I add one of the values in quotes, it works
"query":"guid:(string1 \"string2\")",
Any ideas what I'm missing or what parameter will make this work as documented?
Thanks!