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 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 exclude all other w1 and w2 which are no relevant for the query) but the object "Hits" returns only document id matching the query and not occurrence for each document matching.

  Thanks for your help

  Olivier

                
---------------------------------
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. Cliquez ici.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to