lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <>
Subject Re: solr 1.4 csv import -- Document missing required field: id
Date Sun, 03 Jan 2010 01:47:08 GMT
You seem to have 'company' as your unique key. You can change the
schema.xml to use 'company' as the uniqueId. There is nothing magic
about the field name 'id'.

While it is possible to have a Solr schema without a unique key,
almost nobody does this. A unique key makes working with Solr much

On Sat, Jan 2, 2010 at 7:53 AM, Yonik Seeley <> wrote:
> On Sat, Jan 2, 2010 at 12:27 AM, Israel Ekpo <> wrote:
>> The uniqueKey definition is not needed if you are going to build the index
>> from scratch each time you do the import.
>> However, if you are doing incremental updates, this field is required and
>> the uniqueKey definition is also needed too to specify what the "primary
>> key" for the doucment is.
> Further, if you know you aren't adding any duplicate documents, you
> can temporarily disable document overwriting by adding
> "overwrite=false" to the request.
> -Yonik

Lance Norskog

View raw message