On Apr 4, 2006, at 8:30 AM, Fisheye wrote:
Is it possible to get back a highlighted text "snippet" when using
fuzzy
search? I mean where does lucene stores the similar words to the
search
query? If I know where these words are, I can use one of these
words to
highlight.
You mean using a FuzzyQuery (fuzzy~ in QueryParser syntax)? For any
query which expands to multiple terms, a rewrite of the Query is
needed before the Highlighter can do its thing. Look at Query.rewrite
().
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]