使用mysql作为solr的索引源
首先,需要在solrconfig.xml中增加
data-config.xml
?
在同一个目录下,新建一个数据库data-config.xml文件
?
然后确认好,你的schema.xml 是否与查询的字段是否匹配。
见附件
?
选择你的core:collection1
然后选择dataimport 然后进行full-import?
?
?除了使用控制台来导入数据,也可以通过url来触发操作:
curl http://:/solr/dataimport?command=full-import.
