SOLR-2139: revert 1022357. threshold should be float in solrconfig.xml

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1025803 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2010-10-21 00:48:44 +00:00
parent c99ac478c5
commit 041534488d
3 changed files with 2 additions and 4 deletions

View File

@ -523,8 +523,6 @@ Bug Fixes
* SOLR-2148: Highlighter doesn't support q.alt. (koji)
* SOLR-2139: Wrong cast from string to float (Igor Rodionov via koji)
* SOLR-2157 Suggester should return alpha-sorted results when onlyMorePopular=false (ab)
* SOLR-1794: Dataimport of CLOB fields fails when getCharacterStream() is

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.parseFloat(config.get(THRESHOLD_TOKEN_FREQUENCY).toString());
: (Float)config.get(THRESHOLD_TOKEN_FREQUENCY);
sourceLocation = (String) config.get(LOCATION);
field = (String)config.get(FIELD);
lookupImpl = (String)config.get(LOOKUP_IMPL);

View File

@ -103,7 +103,7 @@
<str name="buildOnCommit">true</str>
<!-- Suggester properties -->
<str name="threshold">0.0</str>
<float name="threshold">0.0</float>
<!--
<str name="sourceLocation">american-english</str>
-->