There is a long thread in the archive where Mark and I talked about a SpansExtractor class that might do what you want. See the thread titled "*Multiword Highlighting"*
Erick On 3/1/07, matpil <[EMAIL PROTECTED]> wrote:
Hi! My problem is to retrieve the term positions in a "general" query with more than one terms. It seems that with the phrase query it's possible (with SpanQuery) but with "AND" and "OR" query I can't get the position for each document I search. I'm looking for a high level implementation because I don't want to use low level lucene API (I'm a lucene newbie...) Thanx in advance, Mat -- View this message in context: http://www.nabble.com/retrieve-term-positions-in-query-tf3327146.html#a9250330 Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]