Hello,
I am trying to use the simple_query_string to perform a proximity search using the ~ operator.
Something like the following works fine.
"simple_query_string": {"query": ""Arizona Diamondbacks"~8", "default_operator": "AND"}
However I need to be able to define the words being searched for as a complex expression such as the following.
"simple_query_string": {"query": ""Arizona (Brewers | Diamondbacks)"~8", "default_operator": "AND"}
The expression could get much more complex than this, with the proximity terms becoming recursive AND/OR type algebraic expressions.
Is this achievable using the simple_query_string, or should I be looking elsewhere?
Thanks