lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <>
Subject Re: Getting irrelevant results using fuzzy query
Date Tue, 17 Jun 2008 18:38:54 GMT
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 

BTW, In general, there's more traffic on the java-user list and you might 
get more answers there.



View raw message