What is the best way to extract term positions from the Lucene search result?
I'm using Lucene 4.0 with custom analyser and trying to locate each occurrence of given term in each document.
One option is to use code from highlight module of Lucene. I also found question: Finding the position of search hits from Lucene but solution applies only to previous version of Lucene.
Are there any other possibilities different than highlighter in Lucene 4?