Retrieving positions or offsets from search result

This has been asked before, and not answered:

Is there a way to retrieve the positions or offsets from a result query, perhaps via the highlight feature? I think the answer is no, but please confirm.

Not in general, no. Wikimedia's highlighter supports it, I believe. I'm not sure they've released a 2.3 compatible version though.