Project

General

Profile

Download (1.78 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / flarecast / data / solr / template / conf / db-data-config.dist.xml @ master

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
            <field column="NAME" name="nameSort" />
8
            <field column="NAME" name="alphaNameSort" />
9

    
10
            <entity name="feature"  
11
                    query="select DESCRIPTION from FEATURE where ITEM_ID='${item.ID}'"
12
                    deltaQuery="select ITEM_ID from FEATURE where last_modified > '${dataimporter.last_index_time}'"
13
                    parentDeltaQuery="select ID from item where ID=${feature.ITEM_ID}">
14
                <field name="features" column="DESCRIPTION" />
15
            </entity>
16
            
17
            <entity name="item_category"
18
                    query="select CATEGORY_ID from item_category where ITEM_ID='${item.ID}'"
19
                    deltaQuery="select ITEM_ID, CATEGORY_ID from item_category where last_modified > '${dataimporter.last_index_time}'"
20
                    parentDeltaQuery="select ID from item where ID=${item_category.ITEM_ID}">
21
                <entity name="category"
22
                        query="select DESCRIPTION from category where ID = '${item_category.CATEGORY_ID}'"
23
                        deltaQuery="select ID from category where last_modified > '${dataimporter.last_index_time}'"
24
                        parentDeltaQuery="select ITEM_ID, CATEGORY_ID from item_category where CATEGORY_ID=${category.ID}">
25
                    <field column="description" name="cat" />
26
                </entity>
27
            </entity>
28
        </entity>
29
    </document>
30
</dataConfig>
31