When you have a <uniqueKey> defined in schema.xml, that is a field in the doc that must exist in every doc you send to Solr.
Actually, you'll see in the definition for the <uniqueKey> field that it has required="true" set. Assuming you have a column "carte_id" being selected for all docs inserted into Solr that should probably work. My guess is that at least some records do NOT have this value set. Best, Erick On Thu, Oct 29, 2015 at 12:54 AM, fabigol <fabien.stou...@vialtis.com> 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? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/org-apache-solr-common-SolrException-Document-is-missing-mandatory-uniqueKey-field-id-tp4237067p4237147.html > Sent from the Solr - User mailing list archive at Nabble.com.