81,122
社区成员




<dataConfig>
<dataSource type="JdbcDataSource" name="dataSource1" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/solr" user="root" password="root" />
<document>
<entity name="article" pk="id"
query="select id,title,author,type from article"
deltaImportQuery="select * from article where id ='${dih.delta.id}'"
deltaQuery="select id from article where update_time > '${dataimporter.last_index_time}'">
<field name="id" column="id"/>
<field name="title" column="title"/>
<field name="author" column="author"/>
<field name="type" column="type"/>
<field name="update_time" column="update_time"/>
</entity>
<entity name="employee_info" flag="emp" pk="id"
query="select id,company_name,user_name,industry,position from employee_info"
deltaImportQuery="select * from employee_info where id ='${dih.delta.id}'"
deltaQuery="select id from employee_info where update_time > '${dataimporter.last_index_time}'">
<field name="id" column="id"/>
<field name="company_name" column="company_name"/>
<field name="user_name" column="user_name"/>
<field name="industry" column="industry"/>
<field name="position" column="position"/>
<field name="update_time" column="update_time"/>
</entity>
</document>
</dataConfig>