[ 
https://issues.apache.org/jira/browse/SOLR-172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475663
 ] 

Ryan McKinley commented on SOLR-172:
------------------------------------

Is it ever ok to send a document without a unique Key?  does/should solr 
require a unique key field in the schema?

It seems like not much works properly if one is not specified - maybe it should 
be an explicit requirement.

> add doc without uniqueKey field causes NPE
> ------------------------------------------
>
>                 Key: SOLR-172
>                 URL: https://issues.apache.org/jira/browse/SOLR-172
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>
> as mentioned in email by otis...
> SimplePostTool: WARNING: Unexpected response from Solr: '<result
> status="1">java.lang.NullPointerException
>         at 
> org.apache.solr.schema.FieldType.storedToIndexed(FieldType.java:248)
>         at 
> org.apache.solr.update.UpdateHandler.getIndexedId(UpdateHandler.java:134)
>         at
> org.apache.solr.update.DirectUpdateHandler2.overwriteBoth(DirectUpdateHandler2.java:380)
> ...

-- 
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