[ 
https://issues.apache.org/jira/browse/SOLR-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682747#action_12682747
 ] 

Hoss Man commented on SOLR-1048:
--------------------------------

the ids param is used in secondary queries as part of a Shard requests right? 
... is it even considered a supported param for user requests?

I *suspect* this is the same bug as SOLR-40 ... a response writer is assuming 
it will find scores on the DocList (because "score" is in the fl param) but the 
request handler didn't execute the query in a way that produces scores. (an id 
lookup based query has no need for score ... in a sharded secondary query the 
first query already generated the scores for the docs against the original 
query)

> Ids parameter and fl=score throws an exception for wt=json
> ----------------------------------------------------------
>
>                 Key: SOLR-1048
>                 URL: https://issues.apache.org/jira/browse/SOLR-1048
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.3
>            Reporter: Laurent Chavet
>
> http://yourHost:8080/solr/select/?ids=YourDocId&version=2.2&start=0&rows=10&indent=on&fl=score,id&q=%2B*:*
> shows that when using ids= the score for docs is null; when using wt=json:
> http://yourHost:8080/solr/select/?ids=YourDocId&version=2.2&start=0&rows=10&indent=on&fl=score,id&q=%2B*:*&wt=json
> that throws a NullPointerException:
> HTTP Status 500 - null java.lang.NullPointerException at 
> org.apache.solr.search.DocSlice$1.score(DocSlice.java:120) at 
> org.apache.solr.request.JSONWriter.writeDocList(JSONResponseWriter.java:490) 
> at 
> org.apache.solr.request.TextResponseWriter.writeVal(TextResponseWriter.java:140)
>  at 
> org.apache.solr.request.JSONWriter.writeNamedListAsMapWithDups(JSONResponseWriter.java:175)
>  at 
> org.apache.solr.request.JSONWriter.writeNamedList(JSONResponseWriter.java:288)
>  at 
> org.apache.solr.request.JSONWriter.writeResponse(JSONResponseWriter.java:88) 
> at 
> org.apache.solr.request.JSONResponseWriter.write(JSONResponseWriter.java:49) 
> at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>  at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>  at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) 
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:847) 
> at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) 
> at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to