Revision 7588,
1.6 KB
checked in by adir, 11 years ago
(diff) |
Ticket #000 - Adicionando a integracao de buscas com Solr na base a ser isnerida na comunidade
|
Rev | Line | |
---|
[7588] | 1 | <dataConfig> |
---|
| 2 | <dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:./example-DIH/hsqldb/ex" user="sa" /> |
---|
| 3 | <document> |
---|
| 4 | <entity name="item" query="select * from item" |
---|
| 5 | deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'"> |
---|
| 6 | <field column="NAME" name="name" /> |
---|
| 7 | |
---|
| 8 | <entity name="feature" |
---|
| 9 | query="select DESCRIPTION from FEATURE where ITEM_ID='${item.ID}'" |
---|
| 10 | deltaQuery="select ITEM_ID from FEATURE where last_modified > '${dataimporter.last_index_time}'" |
---|
| 11 | parentDeltaQuery="select ID from item where ID=${feature.ITEM_ID}"> |
---|
| 12 | <field name="features" column="DESCRIPTION" /> |
---|
| 13 | </entity> |
---|
| 14 | |
---|
| 15 | <entity name="item_category" |
---|
| 16 | query="select CATEGORY_ID from item_category where ITEM_ID='${item.ID}'" |
---|
| 17 | deltaQuery="select ITEM_ID, CATEGORY_ID from item_category where last_modified > '${dataimporter.last_index_time}'" |
---|
| 18 | parentDeltaQuery="select ID from item where ID=${item_category.ITEM_ID}"> |
---|
| 19 | <entity name="category" |
---|
| 20 | query="select DESCRIPTION from category where ID = '${item_category.CATEGORY_ID}'" |
---|
| 21 | deltaQuery="select ID from category where last_modified > '${dataimporter.last_index_time}'" |
---|
| 22 | parentDeltaQuery="select ITEM_ID, CATEGORY_ID from item_category where CATEGORY_ID=${category.ID}"> |
---|
| 23 | <field column="description" name="cat" /> |
---|
| 24 | </entity> |
---|
| 25 | </entity> |
---|
| 26 | </entity> |
---|
| 27 | </document> |
---|
| 28 | </dataConfig> |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.