lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajani Maski <rajani.ma...@lucidworks.com>
Subject Re: Apache Solr SpellChecker Integration with the default select request handler
Date Wed, 04 Nov 2015 18:41:41 GMT
The attached exception seems to be stripped off. Anyways,

>>I want to integrate spellcheck handler with default select handler. Please
guide me how can I achieve this.

If  you were unable to follow the steps mentioned on reference guide[2],
here is another link[1] that gives same but quick setup steps for spell
check that you may want to have a look at.

[1] https://support.lucidworks.com/hc/en-us/articles/212722027
[2]https://cwiki.apache.org/confluence/display/solr/Spell+Checking

Hope that helps.





On Wed, Nov 4, 2015 at 2:37 AM, Shruthi BN <shruthi.bn@ideapoke.com> wrote:

> Hi Team,
>
> I want to integrate spellcheck handler with default select handler.
>
> Please guide me how can I achieve this.
>
>
>
>
>
> I tried like
>
>
>
> <requestHandler name="/select" class="solr.SearchHandler" startup="lazy">
>
>
>
>      <lst name="defaults">
>
>        <str name="echoParams">explicit</str>
>
>        <int name="rows">10</int>
>
>        <str name="df">text</str>
>
>                    <!-- Suggest -->
>
>       <str name="df">productname</str>
>
>       <str name="spellcheck.dictionary">default</str>
>
>       <str name="spellcheck">on</str>
>
>       <str name="spellcheck.extendedResults">true</str>
>
>       <str name="spellcheck.count">5</str>
>
>       <str name="spellcheck.collate">true</str>
>
>       <str name="spellcheck.collateExtendedResults">true</str>
>
>      </lst>
>
>                   <arr name="last-components">
>
>       <str>spellcheck</str>
>
>     </arr>
>
> </requestHandler>
>
>
>
>
>
> But above code is not working.I got exception like
>
> <lst name="error">
>
> <str name="trace">
>
> java.lang.NullPointerException at
>
> org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComp
> onent.java:130) at
>
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHand
> ler.java:208) 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:1816) at
>
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:4
> 48) at
>
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:
> 269) at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:243) at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:210) at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:225) at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:169) at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168
> ) at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
> at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :118) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> at
>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce
> ssor.java:999) at
>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac
> tProtocol.java:565) at
>
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:
> 1812) at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
> 45) at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
> 15) at java.lang.Thread.run(Thread.java:745)
>
> </str>
>
> <int name="code">500</int>
>
> </lst>
>
>
>
> Thanks & Regards,
>
> Shruthi
>
> Ideapoke Technologies
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message