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 <fields> <field name="id" type="string" indexed="true" stored="true" required="false" /> <field name="name" type="textgen" indexed="true" stored="true"/> <field name="text" type="text" indexed="true" stored="true" multiValued="true"/> <dynamicField name="ignored_*" type="ignored" multiValued="true"/> <dynamicField name="random_*" type="random" /> <dynamicField name="*" type="string" indexed="true"/> </fields> <uniqueKey>id</uniqueKey> Following is the csv file company_id,customer_name,active 58,Apache,Y 58,Solr,Y 58,Lucene,Y 60,IBM,Y Following is the solrj import client SolrServer server = new CommonsHttpSolrServer("http://localhost:8080/solr"); ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update/csv"); req.addFile(new File(filename)); req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); NamedList result = server.request(req); System.out.println("Result: " + result); Could any of you help out please. Thanks -- View this message in context: http://old.nabble.com/solr-1.4-csv-import-----Document-missing-required-field%3A-id-tp26990048p26990048.html Sent from the Solr - User mailing list archive at Nabble.com.