Re: Search Query with editdistance - throws Null Pointer

2014-12-18 Thread Chris Hostetter
: But how do we avoid this error? : Is there anyway to tweak the query and return empty result instead of null : pointer exception? did you look at the issue i linked to? : >> probably this bug: https://issues.apache.org/jira/browse/SOLR-6540 >> A workarround in some contexts can be to wrap th

Re: Search Query with editdistance - throws Null Pointer

2014-12-18 Thread Trilok Prithvi
Thanks Hoss. But how do we avoid this error? Is there anyway to tweak the query and return empty result instead of null pointer exception? On Thu, Dec 18, 2014 at 4:31 PM, Trilok Prithvi wrote: > > Here is the stack trace... > > java.lang.NullPointerException at > org.apache.lucene.search.spell

Re: Search Query with editdistance - throws Null Pointer

2014-12-18 Thread Trilok Prithvi
Here is the stack trace... java.lang.NullPointerException at org.apache.lucene.search.spell.LevensteinDistance.getDistance(LevensteinDistance.java:66) at org.apache.solr.search.function.distance.StringDistanceFunction$1.floatVal(StringDistanceFunction.java:54) at org.apache.lucene.queries.function

Re: Search Query with editdistance - throws Null Pointer

2014-12-18 Thread Chris Hostetter
: When I run the following query (Solr 4.10.2) with edit-distance, I'm : getting a null pointer exception: : : */solr/select?q=fld:(Event : ID)&fl=strdist("eventid",fld_alphaonly,edit)* probably this bug: https://issues.apache.org/jira/browse/SOLR-6540 : java.lang.NullPointerException : 500 : :

Re: Search Query with editdistance - throws Null Pointer

2014-12-18 Thread Alexandre Rafalovitch
What's the full stack trace in your server logs? Regards, Alex. Sign up for my Solr resources newsletter at http://www.solr-start.com/ On 17 December 2014 at 16:58, Trilok Prithvi wrote: > When I run the following query (Solr 4.10.2) with edit-distance, I'm > getting a null pointer exce

Search Query with editdistance - throws Null Pointer

2014-12-17 Thread Trilok Prithvi
When I run the following query (Solr 4.10.2) with edit-distance, I'm getting a null pointer exception: */solr/select?q=fld:(Event ID)&fl=strdist("eventid",fld_alphaonly,edit)* java.lang.NullPointerException 500 It works if I remove the space between "Event ID", like: */solr/select?q=fld:(EventID