On 10/29/2015 1:54 AM, fabigol wrote:
> hi,
> thank to your reply
> When you says 
> 'You must have a field labeled "id" in the doc sent to Solr'. it's in the
> response of the select that i must get an "id"?  i must write "select
> 'something' as ID...." is it good???
> in schema.xml i have the following line
> <uniqueKey>ID</uniqueKey>
>  end
> my data-import file i have
> <field name="ID" column="carte_id" />
>
> I think that i must map the column ID in my file data-import. I make the
> mapping helping with the "select something as id..."
> is it good?

Solr's schema has the field, the problem is that the result from the
database query, after the dataimport handler is done with it, does not
contain the ID field for at least one document.  In your DIH config, I
saw this:

<field name="ID" column="tiers_id" />

Either that field mapping isn't working, or the tiers_id db column is
NULL/missing on at least one of your database rows, which results in the
ID field being absent from the Solr document that the dataimport handler
sends to Solr.

Thanks,
Shawn

Reply via email to