mirror of https://github.com/apache/lucene.git
Remove pk from all entities in example DIH configuration
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@812117 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c8d2431548
commit
c7696af098
|
@ -1,24 +1,24 @@
|
||||||
<dataConfig>
|
<dataConfig>
|
||||||
<dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:./example-DIH/hsqldb/ex" user="sa" />
|
<dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:./example-DIH/hsqldb/ex" user="sa" />
|
||||||
<document name="products">
|
<document>
|
||||||
<entity name="item" pk="ID" query="select * from item"
|
<entity name="item" query="select * from item"
|
||||||
deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'">
|
deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'">
|
||||||
<field column="NAME" name="name" />
|
<field column="NAME" name="name" />
|
||||||
<field column="NAME" name="nameSort" />
|
<field column="NAME" name="nameSort" />
|
||||||
<field column="NAME" name="alphaNameSort" />
|
<field column="NAME" name="alphaNameSort" />
|
||||||
|
|
||||||
<entity name="feature" pk="ITEM_ID"
|
<entity name="feature"
|
||||||
query="select DESCRIPTION from FEATURE where ITEM_ID='${item.ID}'"
|
query="select DESCRIPTION from FEATURE where ITEM_ID='${item.ID}'"
|
||||||
deltaQuery="select ITEM_ID from FEATURE where last_modified > '${dataimporter.last_index_time}'"
|
deltaQuery="select ITEM_ID from FEATURE where last_modified > '${dataimporter.last_index_time}'"
|
||||||
parentDeltaQuery="select ID from item where ID=${feature.ITEM_ID}">
|
parentDeltaQuery="select ID from item where ID=${feature.ITEM_ID}">
|
||||||
<field name="features" column="DESCRIPTION" />
|
<field name="features" column="DESCRIPTION" />
|
||||||
</entity>
|
</entity>
|
||||||
|
|
||||||
<entity name="item_category" pk="ITEM_ID, CATEGORY_ID"
|
<entity name="item_category"
|
||||||
query="select CATEGORY_ID from item_category where ITEM_ID='${item.ID}'"
|
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}'"
|
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}">
|
parentDeltaQuery="select ID from item where ID=${item_category.ITEM_ID}">
|
||||||
<entity name="category" pk="ID"
|
<entity name="category"
|
||||||
query="select DESCRIPTION from category where ID = '${item_category.CATEGORY_ID}'"
|
query="select DESCRIPTION from category where ID = '${item_category.CATEGORY_ID}'"
|
||||||
deltaQuery="select ID from category where last_modified > '${dataimporter.last_index_time}'"
|
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}">
|
parentDeltaQuery="select ITEM_ID, CATEGORY_ID from item_category where CATEGORY_ID=${category.ID}">
|
||||||
|
|
Loading…
Reference in New Issue