You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Ryan McKinley (JIRA)" <ji...@apache.org> on 2007/02/25 09:10:05 UTC
[jira] Updated: (SOLR-172) add doc without uniqueKey field causes
NPE
[ https://issues.apache.org/jira/browse/SOLR-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley updated SOLR-172:
-------------------------------
Attachment: SOLR-172-uniqueKey-NPE.patch
This patch adds a check to UpdateHandler.addDoc( ) that makes sure the document id is specified *if* the schema declares one.
I had to change some fields in ConvertedLegacyTest from "id_i" to "id"
> 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
> Attachments: SOLR-172-uniqueKey-NPE.patch
>
>
> 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.