On Dienstag, 17. Juni 2008, László Monda wrote:
> FuzzyQuery artist_query = new FuzzyQuery(new Term("artist",
> artist));
You should try the FuzzyQuery constructor that takes a minimum similarity
and a prefix length. The general problem is however, that the degree of
similarity is only one factor. The other factors are the same as for other
searches, e.g. the number of occurences of the term in the document and in
the whole index.
You could try to write your own similarity implementation that disables all
these factors, see
http://lucene.apache.org/java/2_3_1/api/org/apache/lucene/search/Similarity.html
BTW, In general, there's more traffic on the java-user list and you might
get more answers there.
Regards
Daniel
--
http://www.danielnaber.de