Highlight specific occurence

2006-09-25 Thread Virlouvet Olivier
Hi All, I use proximity operator in my queries (for example "w1 w2 WITHIN 4" to find all documents where the distance between w1 and w2 and less or equals to 4) For all documents matching the query, I need to know the corresponding occurences (w1, w2) to highlight them (and so ex

Re: Highlight specific occurence

2006-09-25 Thread Erik Hatcher
One option is to use a SpanQuery (instead of a PhraseQuery if that is what you're currently using) and toy with the getSpans() for getting occurrences of matches. Erik On Sep 25, 2006, at 8:55 AM, Virlouvet Olivier wrote: Hi All, I use proximity operator in my queries (for e