CREATE TABLE `students` (
`id` int(5) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(40) DEFAULT NULL,
`usertype` int(1) DEFAULT '1' COMMENT '1=程序,2=产品,3=前端',
`last_update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `students` VALUES ('1', 'wang jing jie', '1', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('2', 'linchen', '1', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('3', 'wang qi jun', '1', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('4', 'deng ya li', '1', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('5', 'du ya li', '2', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('6', 'guo qiang ', '1', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('7', 'gao yuan', '2', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('8', 'tan zhi', '3', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('9', 'tian ya', '3', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('10', 'yang hao ', '4', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('11', 'wu zhi zhong', '1', '2015-12-29 16:42:39');
INSERT INTO `students` VALUES ('12', 'wang xian xian', '2', '2015-12-29 16:48:10');
cp src/solr-5.1.0/dist/solr-dataimporthandler-5.1.0.jar tomcat/webapps/solr/WEB-INF/lib/
cp src/solr-5.1.0/dist/solr-dataimporthandler-extras-5.1.0.jar tomcat/webapps/solr/WEB-INF/lib/
data-config.xml
OK后重启tomcat,浏览器里选择core1,选择Dataimport,Command选择full-import,Entity选择students即可进行导入
添加内容
delta-data-config.xml
添加内容
重启tomcat,进入后台