[ https://issues.apache.org/jira/browse/SOLR-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835381#action_12835381 ]
Yonik Seeley commented on SOLR-1695: ------------------------------------ bq. ...it doesn't require "id" but it does declare "id" as the uniqueKey field ... even if it's allowing dups shouldn't it ensure that the docs has 1 and only one value for the uniqueKey field? That depends... it makes sense for "normal" documents, but I've seen people that add a few auxillary documents to their index that used different fields, including the id field. But it's not like you gain greater power by allowing that - those usecases could be covered by forcing the user to come up with a uniqueKey value too... it would just be a little more work. > Missleading error message when adding docs with missing/multiple value(s) > for uniqueKey field > ---------------------------------------------------------------------------------------------- > > Key: SOLR-1695 > URL: https://issues.apache.org/jira/browse/SOLR-1695 > Project: Solr > Issue Type: Improvement > Reporter: Hoss Man > Assignee: Hoss Man > Priority: Minor > Fix For: 1.5 > > > Sometimes users don't seem to notice/understand the <uniqueKey/> declaration > in the example schema, and the error message they get if their documents > don't include that field is confusing... > {code} > org.apache.solr.common.SolrException: Document [null] missing required field: > id > {code} > ...because they get an almost identical error even if they remove > {{required=true}} from {{<field name="id" />}} in their schema.xml file. > We should improve the error message so it's clear when a Document is missing > the "uniqueKeyField" (not just a "required" field) so they know the > terminology to look for in diagnosing the problem. > http://old.nabble.com/solr-1.4-csv-import-----Document-missing-required-field%3A-id-to26990048.html#a26990779 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.