You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ko...@apache.org on 2010/10/21 02:48:44 UTC
svn commit: r1025803 - in /lucene/dev/trunk/solr: CHANGES.txt
src/java/org/apache/solr/spelling/suggest/Suggester.java
src/test/test-files/solr/conf/solrconfig-spellchecker.xml
Author: koji
Date: Thu Oct 21 00:48:44 2010
New Revision: 1025803
URL: http://svn.apache.org/viewvc?rev=1025803&view=rev
Log:
SOLR-2139: revert 1022357. threshold should be float in solrconfig.xml
Modified:
lucene/dev/trunk/solr/CHANGES.txt
lucene/dev/trunk/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java
lucene/dev/trunk/solr/src/test/test-files/solr/conf/solrconfig-spellchecker.xml
Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1025803&r1=1025802&r2=1025803&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Thu Oct 21 00:48:44 2010
@@ -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
Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java?rev=1025803&r1=1025802&r2=1025803&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java Thu Oct 21 00:48:44 2010
@@ -76,7 +76,7 @@ public class Suggester extends SolrSpell
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);
Modified: lucene/dev/trunk/solr/src/test/test-files/solr/conf/solrconfig-spellchecker.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/test-files/solr/conf/solrconfig-spellchecker.xml?rev=1025803&r1=1025802&r2=1025803&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/test-files/solr/conf/solrconfig-spellchecker.xml (original)
+++ lucene/dev/trunk/solr/src/test/test-files/solr/conf/solrconfig-spellchecker.xml Thu Oct 21 00:48:44 2010
@@ -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>
-->