On Mittwoch, 18. Juni 2008, László Monda wrote: > Since fuzzy searching is based on the Levenshtein distance, the distance > between "coldplay" and "coldplay" is 0 and the distance between > "coldplay" and "downplay" is 3 so how on earth is possible that when > searching for "coldplay", Lucene returns "longplay"?
You can use query.explain() to get the details of the ranking. In your case, just build a query like: term^100 OR term~, i.e. boost the original (non-fuzzy) term with a large number. Regards Daniel -- http://www.danielnaber.de --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]