Edwin Lee skrev: > Hi all, > > i'm using Lucene 2.3.1. What i'm trying to do seems straightforward enough > (to me), but i just can't find the method to do so. > > Let's say i'm doing a PhraseQuery of the phrase "apples and oranges" with a > non-zero slop value, and it returns, e.g., 20 Hits. Because i'm using > non-zero slop value, the phrase that actually gets found could be something > like "oranges and apples" instead. i would like to find out, for each of the > Hit returned, what is the actual term from the document that was found. How > can i do that? There is no built in support in Lucene for that. You can take a look at what Searcher.explain and the Highlighter does.
If you tell us why you want to do this perhaps we can come up with an alternative solution. karl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]