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 trilok.prit...@gmail.com wrote: When I run the following query (Solr 4.10.2) with edit-distance, I'm

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: : : *host/solr/select?q=fld:(Event : ID)fl=strdist(eventid,fld_alphaonly,edit)* probably this bug: https://issues.apache.org/jira/browse/SOLR-6540 : responselst name=errorstr

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

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 trilok.prit...@gmail.com wrote: Here is the stack trace... java.lang.NullPointerException at

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 the

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: *host/solr/select?q=fld:(Event ID)fl=strdist(eventid,fld_alphaonly,edit)* responselst name=errorstr name=tracejava.lang.NullPointerException /strint name=code500/int/lst/response It works if I