I have also noticed this issue and it happens while creating the collated
result. Mostly due to huge version mismatch between the server and client.

Best idea would be to use same server and client version.

Or else switch off collation (spell check you can still keep on) and do the
collation ( it's nothing but concat the spell checks) in your application
itself.

On 14-Feb-2017 7:34 am, "alias" <524839...@qq.com> wrote:

hi      I use solrj 5.5.0 to inquire solr3.6 reported the following error:
Java.lang.ClassCastException: java.lang.Boolean can not be cast to
org.apache.solr.common.util.NamedList
        At org.apache.solr.client.solrj.response.SpellCheckResponse. <Init>
(SpellCheckResponse.java:47)
        At 
org.apache.solr.client.solrj.response.QueryResponse.extractSpellCheckInfo
(QueryResponse.java:179)
        At org.apache.solr.client.solrj.response.QueryResponse.setResponse
(QueryResponse.java:153)
        At org.apache.solr.client.solrj.SolrRequest.process
(SolrRequest.java:149)
        At org.apache.solr.client.solrj.SolrClient.query
(SolrClient.java:942)
        At org.apache.solr.client.solrj.SolrClient.query
(SolrClient.java:957)
        At com.vip.vipme.demo.utils.SolrTest.testCategoryIdPC
(SolrTest.java:66)
        At com.vip.vipme.demo.SolrjServlet1.doGet (SolrjServlet1.java:33)
        At javax.servlet.http.HttpServlet.service (HttpServlet.java:707)
        At javax.servlet.http.HttpServlet.service (HttpServlet.java:820)
        At org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:487)
        At org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:362)
        At org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
        At org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
        At org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
        At org.mortbay.jetty.webapp.WebAppContext.handle
(WebAppContext.java:405)


If you set the query.set ("spellcheck", Boolean.FALSE); can solve this
problem,
But I would like to know what the specific reasons for this problem


thinks

Reply via email to