Looks like this caused the tests to fail... I've checked in a temporary fix: r1025794
-Yonik http://www.lucidimagination.com On Wed, Oct 20, 2010 at 6:28 PM, <[email protected]> wrote: > Author: ab > Date: Wed Oct 20 22:28:52 2010 > New Revision: 1025784 > > URL: http://svn.apache.org/viewvc?rev=1025784&view=rev > Log: > Threshold parameter is a float, not a string representation of a float. > > Modified: > > lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java > > lucene/dev/trunk/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java > > Modified: > lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java > URL: > http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java?rev=1025784&r1=1025783&r2=1025784&view=diff > ============================================================================== > --- > lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java > (original) > +++ > lucene/dev/branches/branch_3x/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java > Wed Oct 20 22:28:52 2010 > @@ -77,7 +77,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.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); > > 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=1025784&r1=1025783&r2=1025784&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 > Wed Oct 20 22:28:52 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.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); > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
