lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trilok Prithvi <trilok.prit...@gmail.com>
Subject Re: Search Query with editdistance - throws Null Pointer
Date Thu, 18 Dec 2014 23:31:00 GMT
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.valuesource.ProductFloatFunction.func(ProductFloatFunction.java:40)
at
org.apache.lucene.queries.function.valuesource.MultiFloatFunction$1.floatVal(MultiFloatFunction.java:71)
at
org.apache.lucene.queries.function.docvalues.FloatDocValues.objectVal(FloatDocValues.java:71)
at
org.apache.solr.response.transform.ValueSourceAugmenter.transform(ValueSourceAugmenter.java:99)
at
org.apache.solr.response.TextResponseWriter.writeDocuments(TextResponseWriter.java:252)
at
org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:170)
at org.apache.solr.response.XMLWriter.writeResponse(XMLWriter.java:112) at
org.apache.solr.response.XMLResponseWriter.write(XMLResponseWriter.java:40)
at
org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:765)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:426)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:190)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at
org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2378)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)



On Thu, Dec 18, 2014 at 3:06 PM, Chris Hostetter <hossman_lucene@fucit.org>
wrote:
>
> : 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
>
> : <response><lst name="error"><str
> name="trace">java.lang.NullPointerException
> : </str><int name="code">500</int></lst></response>
> :
> : It works if I remove the space between "Event ID", like:
> :
> *<host>/solr/select?q=fld:(EventID)&fl=strdist("eventid",fld_alphaonly,edit)*
>
> because that's a different query, so it matches different docs, so when
> you ask for the "fl" you get differnet things (evidently some docs have
> the "fld_alphaonly" field, and some docs don't)
>
>
> -Hoss
> http://www.lucidworks.com/
>

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