You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Jan Hacker (Jira)" <ji...@apache.org> on 2020/09/21 10:15:00 UTC
[jira] [Commented] (SOLR-10305) uniqueKey field store=false will
throw null NullPointerException
[ https://issues.apache.org/jira/browse/SOLR-10305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17199302#comment-17199302 ]
Jan Hacker commented on SOLR-10305:
-----------------------------------
Unsure whether this exactly the same issue or just strongly related... Just wanted to raise awareness about:
- https://lucene.apache.org/solr/guide/8_6/other-schema-elements.html#:~:text=Although%20uniqueKey%20is%20not%20required
states that a "uniqueKye is not required"
- https://github.com/apache/lucene-solr/blob/0c4d8fb116f7dec83a04d27df550640dcec4eb8d/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java#L720
does a `_String keyFieldName = rb.req.getSchema().getUniqueKeyField().getName();`_ which is an obvious NPE source if there is no uniqueKey specified in Schema?
> uniqueKey field store=false will throw null NullPointerException
> ----------------------------------------------------------------
>
> Key: SOLR-10305
> URL: https://issues.apache.org/jira/browse/SOLR-10305
> Project: Solr
> Issue Type: Bug
> Affects Versions: 5.3.1
> Reporter: jin jing
> Priority: Major
>
> i found if set uniqueKey store=false ,when insert some index,and query as *:*
> will throw nullPointer:
> java.lang.NullPointerException
> at org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:1095)
> at org.apache.solr.handler.component.QueryComponent.handleRegularResponses(QueryComponent.java:754)
> at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:733)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org