Re: solr 1.4 csv import -- Document missing required field: id

2010-01-02 Thread Lance Norskog
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 simpl

Re: solr 1.4 csv import -- Document missing required field: id

2010-01-02 Thread Yonik Seeley
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 t

Re: solr 1.4 csv import -- Document missing required field: id

2010-01-02 Thread evana
Thanks for quick reply. As per you suggestion I commented uniqueKey element in schema.xml and QueryElevationComponent in solrconfig.xml. After that its working like charm. I appreciate your help. --evana Israel Ekpo wrote: > > On Fri, Jan 1, 2010 at 9:13 PM, evana wrote: > >> >> Hi, >> >>

Re: solr 1.4 csv import -- Document missing required field: id

2010-01-01 Thread Israel Ekpo
On Fri, Jan 1, 2010 at 9:13 PM, evana wrote: > > Hi, > > I am trying to import a csv file (without "id" field) on solr 1.4 > In schema.xml "id" field is set with required="false". > But I am getting "org.apache.solr.common.SolrException: Document missing > required field: id" > > Following is the

solr 1.4 csv import -- Document missing required field: id

2010-01-01 Thread evana
Hi, I am trying to import a csv file (without "id" field) on solr 1.4 In schema.xml "id" field is set with required="false". But I am getting "org.apache.solr.common.SolrException: Document missing required field: id" Following is the schema.xml fields section i