lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <ka...@snigel.net>
Subject Re: Problem using SpellChecker with run time strings
Date Tue, 23 May 2006 16:45:51 GMT
On Tue, 2006-05-23 at 10:50 -0500, James Maes wrote:

> It seems to be related to Strings and when they are created. 


Try to create a new instance of SpellChecker for each suggestion. Will
it work? Then you have hit the bug where the per instance float for
maximum score (accuracy) is modified instead of using it local in the
method.

Something like this:

public String[] suggestSimilair(... {
    float accuracy = this.accuracy // add this line in
}

I'll pop a patch in the Jira later today.



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message