Hi Roberto, 1. Why do you have those asterisk characters in your schema field definition? 2. Did you do a spellcheck.build=true before issuing the first spell check request?
Also, as per the latest docs on the wiki ( http://wiki.apache.org/solr/SpellCheckComponent ), the defaults section should be moved to the /spellCheckCompRH section. On Tue, Jul 8, 2008 at 5:37 PM, Roberto Nieto <[EMAIL PROTECTED]> wrote: > Hi, > > I have downloaded the trunk version today and I´m having problems with the > SpellCheckComponent. Its any known bug? > > This is my configuration: > ############################################################# > <searchComponent name="spellcheck" > class="org.apache.solr.handler.component.SpellCheckComponent"> > <lst name="defaults"> > <!-- omp = Only More Popular --> > <str name="spellcheck.onlyMorePopular">false</str> > <!-- exr = Extended Results --> > <str name="spellcheck.extendedResults">false</str> > <!-- The number of suggestions to return --> > <str name="spellcheck.count">1</str> > </lst> > <str name="queryAnalyzerFieldType">text</str> > > <lst name="spellchecker"> > <str name="name">default</str> > <str name="field">title</str> > <str name="spellcheckIndexDir">spellchecker_defaultXX</str> > > </lst> > </searchComponent> > > <queryConverter name="queryConverter" > class="org.apache.solr.spelling.SpellingQueryConverter" /> > > <requestHandler name="/spellCheckCompRH" > class="org.apache.solr.handler.component.SearchHandler"> > <arr name="last-components"> > <str>spellcheck</str> > </arr> > </requestHandler> > ########################################################## > > SCHEMA.XML:... <field name="*title*" type="*text*" indexed="*true*" > stored=" > *true*" /> ... > > When I made: > > http://localhost:8080/solr/spellCheckCompRH?q=*:*&spellcheck.q=ruck&spellcheck=true > > I have this exception: > > Estado HTTP 500 - null java.lang.NullPointerException at > > org.apache.solr.handler.component.SpellCheckComponent.getTokens(SpellCheckComponent.java:217) > at > > org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:184) > at > > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:156) > at > > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:128) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1025) at > > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) > at > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:272) > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) > at > > org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852) > at > > org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584) > at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508) > at java.lang.Thread.run(Unknown Source) > > Any help will be very usefull for me. Thanks for your attention. > > Rober > -- Regards, Shalin Shekhar Mangar.