apache solr:4.1.0 tomcat:7.0.29 mysqlDriver:mysql-connector-java-5.1.24-bin.jar 已将mysql驱动放入solr_home/db/lib中,dataimport也加载成功,但是执行导入时就会报no uniquekey specified in schema和unable to read:dataimport.properties错误. db-data-config.xml:
<dataConfig> <dataSource type="jdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/user" user="root"> <document> <entity name="users" query="select lUserId,sUserName,sName from users"> <field column="lUserId" name="id"/> <field column="sUserName" name="userName"/> <field column="sName" name="name"/> </entity> </document> </dataConfig>
慕桂英4014372
相关分类