Get previous docs and following docs at innerHits

I have an index for comments. Comments can also get sub-comments. If I search my InnerHits query for the most popular one (most likes etc). Can I somehow get the information at which position this comment is. So I would need that to show that there are e.g. 5 comments before and e.g. 10 comments after. That means I would need the information that the comment is at position 6. Is it possible to get this information?

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