It is the location of the token in the document (see IndexReader.termPositions()). This information is already being stored in other parts of the index, it just isn't very efficient to get at it.
Ok, that wasn't the answer I was hoping for :) I was hoping that the positions referred to was the start/end offsets in the originating Token(s). I'll just have to find another way to optimize the highlighting code to make it more efficient.
Regards,
Bruce Ritchie http://www.jivesoftware.com/
smime.p7s
Description: S/MIME Cryptographic Signature