Re: Apache Solr SpellChecker Integration with the default select request handler

2015-11-04 Thread Rajani Maski
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  wrote:

> Hi Team,
>
> I want to integrate spellcheck handler with default select handler.
>
> Please guide me how can I achieve this.
>
>
>
>
>
> I tried like
>
>
>
> 
>
>
>
>  
>
>explicit
>
>10
>
>text
>
>
>
>   productname
>
>   default
>
>   on
>
>   true
>
>   5
>
>   true
>
>   true
>
>  
>
>   
>
>   spellcheck
>
> 
>
> 
>
>
>
>
>
> But above code is not working.I got exception like
>
> 
>
> 
>
> 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)
>
> 
>
> 500
>
> 
>
>
>
> Thanks & Regards,
>
> Shruthi
>
> Ideapoke Technologies
>
>
>
>


Apache Solr SpellChecker Integration with the default select request handler

2015-11-03 Thread Shruthi BN
Hi Team,

I want to integrate spellcheck handler with default select handler.

Please guide me how can I achieve this.

 

 

I tried like

 





 

   explicit

   10

   text

   

  productname

  default

  on

  true

  5

  true

  true

 

  

  spellcheck





 

 

But above code is not working.I got exception like





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)



500



 

Thanks & Regards,

Shruthi

Ideapoke Technologies

 



Re: Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread S.L
Furkan,

I am not sure how this could be a security concern, what I am actually
asking is an approach to integrate the spellchecker search component within
the default request handler.

Thanks.


On Sat, Apr 12, 2014 at 5:38 PM, Furkan KAMACI wrote:

> Hi;
>
> I do not want to change the direction of your question but it is really
> good, secure and flexible to do such kind of things at your client (a java
> client or not). On the other *if *you let people to access your Solr
> instance directly it causes some security  issues.
>
> Thanks;
> Furkan KAMACI
>
>
> 2014-04-12 19:26 GMT+03:00 S.L :
>
> > Yes, I use solrJ , but only to index the data , the querying of the data
> > happens usinf the default select query handler from a non java client.
> >
> >
> > On Sat, Apr 12, 2014 at 12:12 PM, Furkan KAMACI  > >wrote:
> >
> > > Hi;
> > >
> > > Do you use Solrj at your application? Why you did not consider to use
> to
> > > solve this with Solrj?
> > >
> > > Thanks;
> > > Furkan KAMACI
> > >
> > >
> > > 2014-04-12 18:34 GMT+03:00 S.L :
> > >
> > > > Hello fellow Solr users,
> > > >
> > > > I am using the default select request handler to search a Solr core
> , I
> > > > also use the eDismaxquery parser.
> > > >
> > > >1.
> > > >
> > > >I want to integrate this with the spellchecker search component so
> > > that
> > > >if a search request comes in the spellchecker component also gets
> > > called
> > > >and I get a suggestion back with search results.
> > > >2.
> > > >
> > > >If the suggestion is above a certain threshold then I want the
> > search
> > > to
> > > >be made on that suggestion , otherwise the suggestion should
> > comeback
> > > > along
> > > >with the search results for the original search term.
> > > >
> > > > In order to accomplish this it seems I need to integrate the
> > > > SearchHandler.java class to call the spellchecker internally and then
> > > make
> > > > a search call if the suggestion from the spellchecker has a
> suggestion
> > > that
> > > > is above a certain threshold.
> > > >
> > > > I would really appreciate if there any examples of calling the
> > > SpellChecker
> > > > component via the API in Solr that someone can share with me and also
> > if
> > > > you could validate my approach. Thank You.
> > > >
> > >
> >
>


Re: Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread Furkan KAMACI
Hi;

I do not want to change the direction of your question but it is really
good, secure and flexible to do such kind of things at your client (a java
client or not). On the other *if *you let people to access your Solr
instance directly it causes some security  issues.

Thanks;
Furkan KAMACI


2014-04-12 19:26 GMT+03:00 S.L :

> Yes, I use solrJ , but only to index the data , the querying of the data
> happens usinf the default select query handler from a non java client.
>
>
> On Sat, Apr 12, 2014 at 12:12 PM, Furkan KAMACI  >wrote:
>
> > Hi;
> >
> > Do you use Solrj at your application? Why you did not consider to use to
> > solve this with Solrj?
> >
> > Thanks;
> > Furkan KAMACI
> >
> >
> > 2014-04-12 18:34 GMT+03:00 S.L :
> >
> > > Hello fellow Solr users,
> > >
> > > I am using the default select request handler to search a Solr core , I
> > > also use the eDismaxquery parser.
> > >
> > >1.
> > >
> > >I want to integrate this with the spellchecker search component so
> > that
> > >if a search request comes in the spellchecker component also gets
> > called
> > >and I get a suggestion back with search results.
> > >2.
> > >
> > >If the suggestion is above a certain threshold then I want the
> search
> > to
> > >be made on that suggestion , otherwise the suggestion should
> comeback
> > > along
> > >with the search results for the original search term.
> > >
> > > In order to accomplish this it seems I need to integrate the
> > > SearchHandler.java class to call the spellchecker internally and then
> > make
> > > a search call if the suggestion from the spellchecker has a suggestion
> > that
> > > is above a certain threshold.
> > >
> > > I would really appreciate if there any examples of calling the
> > SpellChecker
> > > component via the API in Solr that someone can share with me and also
> if
> > > you could validate my approach. Thank You.
> > >
> >
>


Re: Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread S.L
Yes, I use solrJ , but only to index the data , the querying of the data
happens usinf the default select query handler from a non java client.


On Sat, Apr 12, 2014 at 12:12 PM, Furkan KAMACI wrote:

> Hi;
>
> Do you use Solrj at your application? Why you did not consider to use to
> solve this with Solrj?
>
> Thanks;
> Furkan KAMACI
>
>
> 2014-04-12 18:34 GMT+03:00 S.L :
>
> > Hello fellow Solr users,
> >
> > I am using the default select request handler to search a Solr core , I
> > also use the eDismaxquery parser.
> >
> >1.
> >
> >I want to integrate this with the spellchecker search component so
> that
> >if a search request comes in the spellchecker component also gets
> called
> >and I get a suggestion back with search results.
> >2.
> >
> >If the suggestion is above a certain threshold then I want the search
> to
> >be made on that suggestion , otherwise the suggestion should comeback
> > along
> >with the search results for the original search term.
> >
> > In order to accomplish this it seems I need to integrate the
> > SearchHandler.java class to call the spellchecker internally and then
> make
> > a search call if the suggestion from the spellchecker has a suggestion
> that
> > is above a certain threshold.
> >
> > I would really appreciate if there any examples of calling the
> SpellChecker
> > component via the API in Solr that someone can share with me and also if
> > you could validate my approach. Thank You.
> >
>


Re: Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread Furkan KAMACI
Hi;

Do you use Solrj at your application? Why you did not consider to use to
solve this with Solrj?

Thanks;
Furkan KAMACI


2014-04-12 18:34 GMT+03:00 S.L :

> Hello fellow Solr users,
>
> I am using the default select request handler to search a Solr core , I
> also use the eDismaxquery parser.
>
>1.
>
>I want to integrate this with the spellchecker search component so that
>if a search request comes in the spellchecker component also gets called
>and I get a suggestion back with search results.
>2.
>
>If the suggestion is above a certain threshold then I want the search to
>be made on that suggestion , otherwise the suggestion should comeback
> along
>with the search results for the original search term.
>
> In order to accomplish this it seems I need to integrate the
> SearchHandler.java class to call the spellchecker internally and then make
> a search call if the suggestion from the spellchecker has a suggestion that
> is above a certain threshold.
>
> I would really appreciate if there any examples of calling the SpellChecker
> component via the API in Solr that someone can share with me and also if
> you could validate my approach. Thank You.
>


Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread S.L
Hello fellow Solr users,

I am using the default select request handler to search a Solr core , I
also use the eDismaxquery parser.

   1.

   I want to integrate this with the spellchecker search component so that
   if a search request comes in the spellchecker component also gets called
   and I get a suggestion back with search results.
   2.

   If the suggestion is above a certain threshold then I want the search to
   be made on that suggestion , otherwise the suggestion should comeback along
   with the search results for the original search term.

In order to accomplish this it seems I need to integrate the
SearchHandler.java class to call the spellchecker internally and then make
a search call if the suggestion from the spellchecker has a suggestion that
is above a certain threshold.

I would really appreciate if there any examples of calling the SpellChecker
component via the API in Solr that someone can share with me and also if
you could validate my approach. Thank You.