mirror of https://github.com/apache/lucene.git
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:
parent
c99ac478c5
commit
041534488d
|
@ -523,8 +523,6 @@ Bug Fixes
|
||||||
|
|
||||||
* SOLR-2148: Highlighter doesn't support q.alt. (koji)
|
* 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-2157 Suggester should return alpha-sorted results when onlyMorePopular=false (ab)
|
||||||
|
|
||||||
* SOLR-1794: Dataimport of CLOB fields fails when getCharacterStream() is
|
* SOLR-1794: Dataimport of CLOB fields fails when getCharacterStream() is
|
||||||
|
|
|
@ -76,7 +76,7 @@ public class Suggester extends SolrSpellChecker {
|
||||||
LOG.info("init: " + config);
|
LOG.info("init: " + config);
|
||||||
String name = super.init(config, core);
|
String name = super.init(config, core);
|
||||||
threshold = config.get(THRESHOLD_TOKEN_FREQUENCY) == null ? 0.0f
|
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);
|
sourceLocation = (String) config.get(LOCATION);
|
||||||
field = (String)config.get(FIELD);
|
field = (String)config.get(FIELD);
|
||||||
lookupImpl = (String)config.get(LOOKUP_IMPL);
|
lookupImpl = (String)config.get(LOOKUP_IMPL);
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
<str name="buildOnCommit">true</str>
|
<str name="buildOnCommit">true</str>
|
||||||
|
|
||||||
<!-- Suggester properties -->
|
<!-- Suggester properties -->
|
||||||
<str name="threshold">0.0</str>
|
<float name="threshold">0.0</float>
|
||||||
<!--
|
<!--
|
||||||
<str name="sourceLocation">american-english</str>
|
<str name="sourceLocation">american-english</str>
|
||||||
-->
|
-->
|
||||||
|
|
Loading…
Reference in New Issue