Longest prefix match

I am not able to figure out how to achieve the longest prefix match between the search query and the stored doc values.
Say we have the below doc values indexed.
and if the input query is "abababc", I need to match the first doc value.
Is this possible with elasticsearch.
Appreciate any help.

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