Prefix query with multiple terms in sequence

I'm looking for a way to make a query with multiple terms with prefix that preserve the order they're showed.

Using match_phrase_prefix only the last term is the prefix.

I can combine prefix with multiple match_phrase but then the order is not guarantee.

What i'm looking for is like, searching for "f bar baz" the first term is the prefix and the others must be in order, so the result would be "fo bar baz" and "foo bar baz"

I don't know if Completion Suggester would fit this behaviour well.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.