aboutsummaryrefslogtreecommitdiff
path: root/solr-8.1.1/example/example-DIH/solr/db/conf/db-data-config.xml
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-07-01 15:40:55 -0400
committerab <abdullah_ahmed@brown.edu>2019-07-01 15:40:55 -0400
commit0fc7edd5f9bd1234f8de6e5b1c7b8f23668d784c (patch)
tree2ddff97c032657fb86de37c3be2cf2d201980088 /solr-8.1.1/example/example-DIH/solr/db/conf/db-data-config.xml
parent4f8b7cecea3ceed6861c38bde9ce03c9c46e2d09 (diff)
parent6bd79baf2d9301304194d87667bb5c66c17e5298 (diff)
Merge branch 'monikasearch2' of https://github.com/browngraphicslab/Dash-Web into text_box_ab
Diffstat (limited to 'solr-8.1.1/example/example-DIH/solr/db/conf/db-data-config.xml')
-rw-r--r--solr-8.1.1/example/example-DIH/solr/db/conf/db-data-config.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/solr-8.1.1/example/example-DIH/solr/db/conf/db-data-config.xml b/solr-8.1.1/example/example-DIH/solr/db/conf/db-data-config.xml
new file mode 100644
index 000000000..4a7dba955
--- /dev/null
+++ b/solr-8.1.1/example/example-DIH/solr/db/conf/db-data-config.xml
@@ -0,0 +1,29 @@
+<dataConfig>
+ <dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:${solr.install.dir}/example/example-DIH/hsqldb/ex" user="sa" />
+ <document>
+ <entity name="item" query="select * from item"
+ deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'">
+ <field column="NAME" name="name" />
+
+ <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}">
+ <field name="features" column="DESCRIPTION" />
+ </entity>
+
+ <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}">
+ <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}">
+ <field column="DESCRIPTION" name="cat" />
+ </entity>
+ </entity>
+ </entity>
+ </document>
+</dataConfig>
+