title: Solr spellcheck: cannot show result, always receiving same error
body: <p>So, Im quite new on solr, and maybe I have so many understanding problems. </p>
  
  <p>What Im trying to do right now, its an autosuggestion for my search bar. 
  For example, if you write "glves", the result should be "gloves". This is inside an autocomplete, which works fine right now. But of course, when I type "glves", nothing appear. </p>
  
  <p>Right now, when you write "gloves", all the items with have the word "gloves" on the item field, appear. I want this too for the term "glves".</p>
  
  <p>This is my schema.xml:</p>
  
  <pre><code>    &lt;field name="_version_" type="long" indexed="true" stored="true"/&gt;
      &lt;field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/&gt;
      &lt;field name="oxid" type="string" indexed="true" stored="true" required="true" multiValued="false" /&gt;
      &lt;field name="ean" type="string" indexed="true" required="false" /&gt;
      &lt;field name="marken" type="text_en" indexed="true" stored="true" /&gt;
      &lt;field name="item" type="text_en" indexed="true" stored="true" /&gt;
      &lt;field name="shortdesc" type="text_de" indexed="true" stored="true" /&gt;
      &lt;field name="price" type="float" indexed="true" stored="true" /&gt;
      &lt;field name="picture" type="string" indexed="true" stored="true" /&gt;
      &lt;field name="seourl" type="string" indexed="true" stored="true" /&gt;
      &lt;field name="item_autocomplete" type="text_autocomplete" indexed="true" stored="false" /&gt;
      &lt;field name="item_show" type="string" indexed="true" stored="false" /&gt;
  </code></pre>
  
  <p>The fields above, are working good to my purpose. The field I need to index for the searches is item.</p>
  
  <p>And this is what I have on my solrconfig.xml:</p>
  
  <pre><code>&lt;searchComponent name="spellcheck" class="solr.SpellCheckComponent"&gt;
  
  &lt;str name="queryAnalyzerFieldType"&gt;item&lt;/str&gt;
  
  &lt;!-- Multiple "Spell Checkers" can be declared and used by this
       component
    --&gt;
  
  &lt;!-- a spellchecker built from a field of the main index --&gt;
  &lt;lst name="spellchecker"&gt;
    &lt;str name="name"&gt;default&lt;/str&gt;
    &lt;str name="field"&gt;item&lt;/str&gt;
    &lt;str name="classname"&gt;solr.DirectSolrSpellChecker&lt;/str&gt;
      &lt;str name="spellcheckIndexDir"&gt;./spellchecker&lt;/str&gt;
    &lt;str name="buildOnOptimize"&gt;true&lt;/str&gt;
    &lt;str name="buildOnCommit"&gt;true&lt;/str&gt;
    &lt;!-- the spellcheck distance measure used, the default is the internal levenshtein --&gt;
    &lt;str name="distanceMeasure"&gt;internal&lt;/str&gt;
    &lt;!-- minimum accuracy needed to be considered a valid spellcheck suggestion --&gt;
    &lt;float name="accuracy"&gt;0.5&lt;/float&gt;
    &lt;!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 --&gt;
    &lt;int name="maxEdits"&gt;2&lt;/int&gt;
    &lt;!-- the minimum shared prefix when enumerating terms --&gt;
    &lt;int name="minPrefix"&gt;1&lt;/int&gt;
    &lt;!-- maximum number of inspections per result. --&gt;
    &lt;int name="maxInspections"&gt;5&lt;/int&gt;
    &lt;!-- minimum length of a query term to be considered for correction --&gt;
    &lt;int name="minQueryLength"&gt;4&lt;/int&gt;
    &lt;!-- maximum threshold of documents a query term can appear to be considered for correction --&gt;
    &lt;float name="maxQueryFrequency"&gt;0.01&lt;/float&gt;
    &lt;!-- uncomment this to require suggestions to occur in 1% of the documents
      &lt;float name="thresholdTokenFrequency"&gt;.01&lt;/float&gt;
    --&gt;
  &lt;/lst&gt;
  
  &lt;!-- a spellchecker that can break or combine words.  See "/spell" handler below for usage --&gt;
  &lt;lst name="spellchecker"&gt;
    &lt;str name="name"&gt;wordbreak&lt;/str&gt;
    &lt;str name="classname"&gt;solr.WordBreakSolrSpellChecker&lt;/str&gt;      
    &lt;str name="field"&gt;name&lt;/str&gt;
    &lt;str name="combineWords"&gt;true&lt;/str&gt;
    &lt;str name="breakWords"&gt;true&lt;/str&gt;
    &lt;int name="maxChanges"&gt;10&lt;/int&gt;
  &lt;/lst&gt;
  </code></pre>
  
  <p>But each time I make a query to solr, ie: </p>
  
  <pre><code>http://localhost:8983/solr/spell?spellcheck=true&amp;qt=spellchecker&amp;spellcheck.accuracy=0.8&amp;spellcheck.collate=true&amp;extendedResults=true+&amp;q=glovs
  </code></pre>
  
  <p>I get the same response:</p>
  
  <pre><code>&lt;response&gt;&lt;lst name="responseHeader"&gt;&lt;int name="status"&gt;500&lt;/int&gt;&lt;int name="QTime"&gt;2&lt;/int&gt;&lt;/lst&gt;&lt;lst name="error"&gt;&lt;str name="msg"&gt;All checkers need to use the same Analyzer.&lt;/str&gt;&lt;str name="trace"&gt;java.lang.IllegalArgumentException: All checkers need to use the same Analyzer.
  at org.apache.solr.spelling.ConjunctionSolrSpellChecker.addChecker(ConjunctionSolrSpellChecker.java:79)
  at org.apache.solr.handler.component.SpellCheckComponent.getSpellChecker(SpellCheckComponent.java:475)
  at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:106)
  at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:187)
  at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
  at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:242)
  at org.apache.solr.core.SolrCore.execute(SolrCore.java:1797)
  at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:637)
  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343)
  at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
  at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
  at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
  at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
  at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
  at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
  at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
  at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
  at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
  at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
  at org.eclipse.jetty.server.Server.handle(Server.java:365)
  at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
  at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
  at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
  at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
  at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
  at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
  at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
  at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
  at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
  at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
  at java.lang.Thread.run(Thread.java:722)
  &lt;/str&gt;&lt;int name="code"&gt;500&lt;/int&gt;&lt;/lst&gt;&lt;/response&gt;
  </code></pre>
  
  <p>I try to follow lots of manuals, tips, old questions on these forums, but Im not getting nothing helpful for me.</p>
  
  <p>Thanks for your time.</p>