How to get exact word first next followed matches with word?

hello everyone
I am very new to Elasticsearch, I need to fetch the data with particular word match
ex: I have data as

cricketnplay, cricket23, cricket, criketlegend

when I match the word cricket
result will be like 1st one exact match and next followed matches

  • cricket
  • cricket23
  • cricketlegend
  • cricketnplay

how to query to get output like this please help
Thanks in advance

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