yes, this might be a way, but in my case it would not work: The probles is, that I have to return an exceprt (snippet) and the words to be highlighted as two separate strings. So now I use highlighter and getBestFragment to extract the excerpt, then I remove the inserted html tags and return the string to my application. In normal query mode I return the matching query string entered by the user. My application then does the highlighting and displays all I need. So if I do fuzzy search and want to go the same way as if I do normal search, I need the similar words generated from the Levenshtein algorithm.
Another approach may be to extract the similar words automatically highlighted in the returned fragment by lucene, before I let remove the html tags... -- View this message in context: http://www.nabble.com/highlighting---fuzzy-search-t1392775.html#a3800664 Sent from the Lucene - Java Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]