solr 学习之数据导入
<?xml version="1.0" encoding="UTF-8" ?><dataConfig>
<!--数据源-->
<dataSource type="JdbcDataSource"
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://192.168.6.223:3307/blog"
user="root"
password="jalja"/>
<!--索引库中的文档-->
<document>
<entity name="blog" query="SELECT> <!-- field 数据库 与 solr域做映射 -->
<field column="id" name="id"/>
<field column="title" name="item_title"/>
<field column="author" name="author"/>
<field column="content" name="content"/>
</entity>
</document>
</dataConfig>
页:
[1]