e.g., I have two documents like "tasty apple is good" and "tasty banana is good".
Now I want to use the query_string to match the two phrases "tasty apple" and "tasty banana". In general, I can use query like
"\"tasty apple\" OR \"tasty banana\""
to match these documents.
But here I want the query like
"\"tasty (apple OR banana)\""
to match. It seems like the es doesn't support parentheses and bool in the phrase mode.
The reason why I need this above is as the number of the search word increasing, the valid query_string is more complicated.
For example when I want to search the
"\"(tasty OR nasty OR good) (apple OR banana OR grape)\""
I don't want to divide this query_string like
"\"tasty apple\" OR \"tasty banana\" OR \"tasty grape\" OR \"nasty apple\" OR ..."