You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Matthew Biscocho (Jira)" <ji...@apache.org> on 2026/03/30 20:05:00 UTC
[jira] [Updated] (SOLR-18181) ValueSourceAugmenter NPE when rows exceed 1000 and scores requested
[ https://issues.apache.org/jira/browse/SOLR-18181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthew Biscocho updated SOLR-18181:
------------------------------------
Fix Version/s: 10.1
> ValueSourceAugmenter NPE when rows exceed 1000 and scores requested
> -------------------------------------------------------------------
>
> Key: SOLR-18181
> URL: https://issues.apache.org/jira/browse/SOLR-18181
> Project: Solr
> Issue Type: Bug
> Affects Versions: 9.10, 10.0
> Reporter: Matthew Biscocho
> Priority: Blocker
> Fix For: 10.1
>
>
> There is a bug with ValueSourceAugmenter causing NPE from changes in SOLR-17775.
> Reproduce this with a fl parameter using a function query, requesting score and any number of rows > 1000. We then get an NPE [here.|https://github.com/apache/solr/blob/f7ad4f1019891bc0eeed346dab1b3770f301e163/solr/core/src/java/org/apache/solr/response/transform/ValueSourceAugmenter.java#L158] That is because when cache misses, it falls back to on demand calculation but this line checked SolrDocument which only has stored field and docValues instead of DocIterationInfo which actually has the score info resulting in null.
>
> Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Float.floatValue()" because the return value of "org.apache.solr.common.SolrDocument.get(Object)" is null
> at org.apache.solr.response.transform.ValueSourceAugmenter.transform(ValueSourceAugmenter.java:157)
> at org.apache.solr.response.transform.DocTransformer.transform(DocTransformer.java:109)
> at org.apache.solr.response.transform.DocTransformer.transform(DocTransformer.java:126)
> at org.apache.solr.response.transform.DocTransformers.transform(DocTransformers.java:78)
> at org.apache.solr.response.DocsStreamer.next(DocsStreamer.java:102)
> at org.apache.solr.response.DocsStreamer.next(DocsStreamer.java:57)
> at org.apache.solr.response.TextResponseWriter.writeDocuments(TextResponseWriter.java:259)
> at org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:197)
>
> h1.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org