You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ALP YILANCIOGLU (JIRA)" <ji...@apache.org> on 2012/11/18 12:52:57 UTC

[jira] [Created] (SOLR-4091) Suggester Component exception null:String cannot be cast to Float

ALP YILANCIOGLU created SOLR-4091:
-------------------------------------

             Summary: Suggester Component exception null:String cannot be cast to Float
                 Key: SOLR-4091
                 URL: https://issues.apache.org/jira/browse/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>
	  </lst>
	  </searchComponent>
	  
	  <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>
	  </lst>
	  <arr name="components">
	  <str>suggester</str>
	  </arr>
	  </requestHandler>

--
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: http://www.atlassian.com/software/jira

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


[jira] [Resolved] (SOLR-4091) Suggester Component exception null:String cannot be cast to Float

Posted by "ALP YILANCIOGLU (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-4091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ALP YILANCIOGLU resolved SOLR-4091.
-----------------------------------

    Resolution: Not A Problem

By changing to a correct representation "threshold" to a float instead of Str =)

   <float name="threshold">0.005</float>
                
> Suggester Component exception null:String cannot be cast to Float
> -----------------------------------------------------------------
>
>                 Key: SOLR-4091
>                 URL: https://issues.apache.org/jira/browse/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>
> 	  </lst>
> 	  </searchComponent>
> 	  
> 	  <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>
> 	  </lst>
> 	  <arr name="components">
> 	  <str>suggester</str>
> 	  </arr>
> 	  </requestHandler>

--
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: http://www.atlassian.com/software/jira

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


[jira] [Commented] (SOLR-4091) Suggester Component exception null:String cannot be cast to Float

Posted by "Erick Erickson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-4091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13499803#comment-13499803 ] 

Erick Erickson commented on SOLR-4091:
--------------------------------------

Alp:

Thanks for closing this out. In future, it's best to raise this kind of issue on the user's list first until you're _sure_ it's a problem with Solr/Lucene then raise a JIRA...

You can subscribe here: http://lucene.apache.org/solr/discussion.html

Best
Erick
                
> Suggester Component exception null:String cannot be cast to Float
> -----------------------------------------------------------------
>
>                 Key: SOLR-4091
>                 URL: https://issues.apache.org/jira/browse/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>
> 	  </lst>
> 	  </searchComponent>
> 	  
> 	  <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>
> 	  </lst>
> 	  <arr name="components">
> 	  <str>suggester</str>
> 	  </arr>
> 	  </requestHandler>

--
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: http://www.atlassian.com/software/jira

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