I've been working with simple query string to query information inside of elastic but I ran into a problem.
When I create a query like:
"simple_query_string":{
"query":"\"this is a phrase\" | KEYWORD_1 | KEYWORD_2",
"fields":[
"field_1",
"field_2",
"field_3",
],
}
It return 0 results, meanwhile if the query is structured with parenthesis:
"simple_query_string":{
"query":"(\"this is a phrase\" | KEYWORD_1) | KEYWORD_2",
"fields":[
"field_1",
"field_2",
"field_3",
],
}
It works smoothly.
I was wondering if I'm missing something in elastic's documentation.