On Wed, Sep 16, 2009 at 1:13 AM, kedardes <kedar.w...@gmail.com> wrote:

>
> Hi, I have a data-config file where I map the fields of a very simple table
> using dynamic field definitions :
>
>        <document name="names">
>                <entity name="names" query="select * from test">
>                        <field column="id" name="id_i" />
>                        <field column="name" name="name_s" />
>                        <field column="city" name="city_s" />
>                </entity>
>        </document>
>
> but when I run the dataimport I get this error:
> WARNING: Error creating document : SolrInputDocumnt[{id_i=id_i(1.0)={2},
> name_s=name_s(1.0)={John Smith}, city_s=city_s(1.0)={Newark}}]
> org.apache.solr.common.SolrException: Document [null] missing required
> field: meta_guid_s
>
> From the schema.xml I see that the meta_guid_s field is defined as a
> "Global
> unique ID" but does this have to be set explicitly or mapped to a
> particular
> field?
>

You have created that schema so you are the better person to answer that
question. As far as a required field or uniqueKey is concerned, their values
have to be set or copied from another field.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to