lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r812117 - /lucene/solr/trunk/example/example-DIH/solr/db/conf/db-data-config.xml
Date Mon, 07 Sep 2009 12:59:54 GMT
Author: shalin
Date: Mon Sep  7 12:59:54 2009
New Revision: 812117

URL: http://svn.apache.org/viewvc?rev=812117&view=rev
Log:
Remove pk from all entities in example DIH configuration

Modified:
    lucene/solr/trunk/example/example-DIH/solr/db/conf/db-data-config.xml

Modified: lucene/solr/trunk/example/example-DIH/solr/db/conf/db-data-config.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/example/example-DIH/solr/db/conf/db-data-config.xml?rev=812117&r1=812116&r2=812117&view=diff
==============================================================================
--- lucene/solr/trunk/example/example-DIH/solr/db/conf/db-data-config.xml (original)
+++ lucene/solr/trunk/example/example-DIH/solr/db/conf/db-data-config.xml Mon Sep  7 12:59:54
2009
@@ -1,24 +1,24 @@
 <dataConfig>
     <dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:./example-DIH/hsqldb/ex"
user="sa" />
-    <document name="products">
-            <entity name="item" pk="ID" query="select * from item"
+    <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" />
             <field column="NAME" name="nameSort" />
             <field column="NAME" name="alphaNameSort" />
 
-            <entity name="feature" pk="ITEM_ID" 
+            <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" pk="ITEM_ID, CATEGORY_ID"
+            <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" pk="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}">



Mime
View raw message