lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <k...@r.email.ne.jp>
Subject Re: svn commit: r1025784 - in /lucene/dev: branches/branch_3x/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java trunk/solr/src/java/org/apache/solr/spelling/suggest/Suggester.java
Date Thu, 21 Oct 2010 00:18:33 GMT
This is my fault in SOLR-2139. I'll revert the fix, and correct
str to float in solrconfig-spellchecker.xml.

Koji
-- 
http://www.rondhuit.com/en/

(10/10/21 8:50), Yonik Seeley wrote:
> 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,<ab@apache.org>  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: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>


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


Mime
View raw message