Organizational Research By

Surprising Reserch Topic

solr using : how to Solr import from mysql database?

asked Sep 22, 2013 in SOLR by rajesh
0 votes

Related Hot Questions

1 Answer

0 votes
The error says the document you're trying to add through the DataImportHandler doesn't contain the id field, which is required. Your query doesn't return an id column, or you're not mapping it correctly within your import handler configuration.
From the configuration you've added, looks like your eno field is the uniqueKey, which should work as long as your select * always returns it. The problem here is that you have more required fields in your schema that I guess you don't need. The error says you have the id field configured as required: you should remove it from your schema or make it optional if you need it for other purposes.
answered Sep 22, 2013 by rajesh