The FastVectorHighlighterSample does most of what I need, but I see that it fails if a wildcard is used (eg "f?x" will not highlight "fox"). Is there a description anywhere of how I can find the tokens that were matched by the query? Assuming that I store the field and use WITH_POSITIONS_OFFSETS, how do I determine that a query found a document and that a search term was found at a certain position or offset?
|