Elastic multy match query with order of words given shoul follow in resulted records

Using multi match queries in each query different words line word1 word2 word3 respectively. After search results also I'm expecting the words in same order, but in between of the words it could be present or not also. But the order should not change.

Input words:
Word1: Google
Word2: drive
Word3: photos

In restless it could be "abc Google xyz drive rst photos bbc"

Here pre and post as well as middle it could be n number of words but the given words must follow order..

Can anyone help me on this
Thanks in advance

Hi @Lakshmikiran

My suggestion is to read about match phrase and span queries.

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