Finding exact position of searched text in the document

Hi,

How can we find the exact position of a searched word in the document source?
If I am searching document with highlight query, I am getting all the occurrences of searched word now I have to find where exactly these words appear in the actual document source.
Is there any way to do this in elasticsearch?

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