Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
mdserver-web/plugins/solr/tpl/db-data-config.xml

22 lines
1011 B

<dataConfig>
<dataSource driver="com.mysql.jdbc.Driver" url="jdbc:mysql://127.0.0.1:3306/test" user="root" password="root"/>
<document>
<!--
query | 获取全部数据的SQL
deltaImportQuery | 是获取增量数据时使用的SQL
deltaQuery | 是获取pk的SQL
parentDeltaQuery | 是获取父Entity的pk的SQL
deletedPkQuery | 增量索引删除主键ID查询
-->
<entity name="test"
pk="id"
query="select * from test1"
deltaImportQuery="select * from test1 where id='${dih.delta.id}'"
deltaQuery="select id from test1 where FROM_UNIXTIME(`time`,'%Y-%m-%d %H:%i:%s')>'${dih.last_index_time}'"
deletedPkQuery="select id from test1 where FROM_UNIXTIME(`time`,'%Y-%m-%d %H:%i:%s')>'${dih.last_index_time}'">
<field column="id" name="id" />
<field column="name" name="name" />
<field column="value" name="value" />
</entity>
</document>
</dataConfig>