Hi
I have multiple match_phrase_prefix queries which I am trying to combine in one query.
GET test/_search
{
"query": {
"bool": {
"should": [
{
"match_phrase_prefix": {
"test_data": {
"query": "search of"
}
}
},
{
"match_phrase_prefix": {
"test_data": {
"query": "world in"
}
}
}
]
}
}
}
I am combining similar multiple match_phrase queries using simple_query_string like this-
GET test/_search
{
"query": {
"simple_query_string": {
"query": "\"search of\" \"world in\"",
"fields": ["test_data"]
}
}
}
Is there a way to combine multiple match_phrase_prefix queries also using simple_query_string or another query?