Threshold parameter is a float, not a string representation of a float.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1025784 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrzej Bialecki 2010-10-20 22:28:52 +00:00
parent 9a1ffd44db
commit 6bd7b93a71
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class Suggester extends SolrSpellChecker {
LOG.info("init: " + config);
String name = super.init(config, core);
threshold = config.get(THRESHOLD_TOKEN_FREQUENCY) == null ? 0.0f
: Float.valueOf((String)config.get(THRESHOLD_TOKEN_FREQUENCY));
: (Float)config.get(THRESHOLD_TOKEN_FREQUENCY);
sourceLocation = (String) config.get(LOCATION);
field = (String)config.get(FIELD);
lookupImpl = (String)config.get(LOOKUP_IMPL);