[
https://issues.apache.org/jira/browse/SOLR-10305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17199302#comment-17199302
]
Jan Hacker edited comment on SOLR-10305 at 9/21/20, 10:22 AM:
--------------------------------------------------------------
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?
- I only run into above NPE if I add explicit `shards=...` parameter to solr
call
was (Author: schnoddelbotz):
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: [email protected]
For additional commands, e-mail: [email protected]