lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] [Created] (SOLR-4091) Suggester Component exception null:String cannot be cast to Float
Date Sun, 18 Nov 2012 11:52:57 GMT

             Summary: Suggester Component exception null:String cannot be cast to Float
                 Key: SOLR-4091
             Project: Solr
          Issue Type: Bug
          Components: clients - java
         Environment: Apache Solr 4.0   -   Tomcat 7.0    - Java 1.6
            Reporter: ALP YILANCIOGLU
            Priority: Critical

I am new to apache solr, 
i deployed the war ( solr 4.0 )  file to tomcat 7.0
and than i set the paths for the cores.
i started the server .. and every thing worked fine

after that i am setting the suggester component to one of the cores,
by adding the following lines to it. bu unfortunetly i am getting an exception on start up
of the server when i look at the admin core page.. 
which is : null:org.apache.solr.common.SolrException: java.lang.String cannot be cast to java.lang.Float

what should i do, (i found some patches but they are for solr 3.x i am using 4.0 )

	  <searchComponent name="suggester" class="solr.SpellCheckComponent">
	  <lst name="spellchecker">
	  <str name="name">suggester</str>
          <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
	  <str name="loopupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str>
	  <str name="field">name</str>
	  <str name="threshold">2</str>
	  <requestHandler class="org.apache.solr.handler.component.SearchHandler" name="/suggester">
	  <lst name="defaults">
	  <str name="spellcheck">true</str>
	  <str name="spellcheck.dictionary">suggester</str>
	  <str name="spellcheck.count">10</str>
	  <arr name="components">

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message