XML   25

db data config xml

Guest on 25th May 2022 12:58:13 PM

  1. <dataConfig>
  2. <dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:${solr.install.dir}/example/example-DIH/hsqldb/ex" user="sa"/>
  3. <document>
  4. <entity name="item" query="select * from item" deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'">
  5. <field column="NAME" name="name"/>
  6. <entity name="feature" query="select DESCRIPTION from FEATURE where ITEM_ID='${item.ID}'" deltaQuery="select ITEM_ID from FEATURE where last_modified > '${dataimporter.last_index_time}'" parentDeltaQuery="select ID from item where ID=${feature.ITEM_ID}">
  7. <field name="features" column="DESCRIPTION"/>
  8. </entity>
  9. <entity name="item_category" query="select CATEGORY_ID from item_category where ITEM_ID='${item.ID}'" deltaQuery="select ITEM_ID, CATEGORY_ID from item_category where last_modified > '${dataimporter.last_index_time}'" parentDeltaQuery="select ID from item where ID=${item_category.ITEM_ID}">
  10. <entity name="category" query="select DESCRIPTION from category where ID = '${item_category.CATEGORY_ID}'" deltaQuery="select ID from category where last_modified > '${dataimporter.last_index_time}'" parentDeltaQuery="select ITEM_ID, CATEGORY_ID from item_category where CATEGORY_ID=${category.ID}">
  11. <field column="DESCRIPTION" name="cat"/>
  12. </entity>
  13. </entity>
  14. </entity>
  15. </document>
  16. </dataConfig>

Raw Paste


Login or Register to edit or fork this paste. It's free.