You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ko...@apache.org on 2011/01/23 17:03:44 UTC

svn commit: r1062460 - in /lucene/dev/branches/branch_3x: ./ lucene/ solr/ solr/CHANGES.txt solr/example/example-DIH/solr/rss/conf/rss-data-config.xml solr/example/example-DIH/solr/rss/conf/schema.xml

Author: koji
Date: Sun Jan 23 16:03:43 2011
New Revision: 1062460

URL: http://svn.apache.org/viewvc?rev=1062460&view=rev
Log:
SOLR-2190: revert the last commit. problem is gone.

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/solr/   (props changed)
    lucene/dev/branches/branch_3x/solr/CHANGES.txt
    lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/rss-data-config.xml
    lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/schema.xml

Modified: lucene/dev/branches/branch_3x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/CHANGES.txt?rev=1062460&r1=1062459&r2=1062460&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_3x/solr/CHANGES.txt Sun Jan 23 16:03:43 2011
@@ -443,8 +443,6 @@ Bug Fixes
 
 * SOLR-2173: Suggester should always rebuild Lookup data if Lookup.load fails. (ab)
 
-* SOLR-2190: change xpath from RSS 0.9 to 1.0 in slashdot sample. (koji)
-
 * SOLR-2057: DataImportHandler never calls UpdateRequestProcessor.finish()
   (Drew Farris via koji)
 

Modified: lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/rss-data-config.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/rss-data-config.xml?rev=1062460&r1=1062459&r2=1062460&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/rss-data-config.xml (original)
+++ lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/rss-data-config.xml Sun Jan 23 16:03:43 2011
@@ -5,17 +5,22 @@
                 pk="link"
                 url="http://rss.slashdot.org/Slashdot/slashdot"
                 processor="XPathEntityProcessor"
-                forEach="/rss/channel/item"
+                forEach="/RDF/channel | /RDF/item"
                 transformer="DateFormatTransformer">
+				
+            <field column="source" xpath="/RDF/channel/title" commonField="true" />
+            <field column="source-link" xpath="/RDF/channel/link" commonField="true" />
+            <field column="subject" xpath="/RDF/channel/subject" commonField="true" />
 			
-            <field column="title" xpath="/rss/channel/item/title" />
-            <field column="link" xpath="/rss/channel/item/link" />
-            <field column="description" xpath="/rss/channel/item/description" />
-            <field column="creator" xpath="/rss/channel/item/creator" />
-            <field column="item-subject" xpath="/rss/channel/item/subject" />
-            <field column="date" xpath="/rss/channel/item/date" dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss" />
-            <field column="slash-department" xpath="/rss/channel/item/department" />
-            <field column="slash-section" xpath="/rss/channel/item/section" />
+            <field column="title" xpath="/RDF/item/title" />
+            <field column="link" xpath="/RDF/item/link" />
+            <field column="description" xpath="/RDF/item/description" />
+            <field column="creator" xpath="/RDF/item/creator" />
+            <field column="item-subject" xpath="/RDF/item/subject" />
+            <field column="date" xpath="/RDF/item/date" dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss" />
+            <field column="slash-department" xpath="/RDF/item/department" />
+            <field column="slash-section" xpath="/RDF/item/section" />
+            <field column="slash-comments" xpath="/RDF/item/comments" />
         </entity>
     </document>
 </dataConfig>

Modified: lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/schema.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/schema.xml?rev=1062460&r1=1062459&r2=1062460&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/schema.xml (original)
+++ lucene/dev/branches/branch_3x/solr/example/example-DIH/solr/rss/conf/schema.xml Sun Jan 23 16:03:43 2011
@@ -294,10 +294,11 @@
 	<field name="link" type="string" indexed="true" stored="true" />
 	<field name="description" type="html" indexed="true" stored="true" />
 	<field name="creator" type="string" indexed="false" stored="true" />
-	<field name="item-subject" type="string" indexed="true" stored="true" />
-	<field name="date" type="date" indexed="true" stored="true" />
-	<field name="slash-department" type="string" indexed="true" stored="true" />
-	<field name="slash-section" type="string" indexed="true" stored="true" />
+	<field name="item-subject" type="string" indexed="true" stored="false" />
+	<field name="date" type="date" indexed="true" stored="false" />
+	<field name="slash-department" type="string" indexed="true" stored="false" />
+	<field name="slash-section" type="string" indexed="true" stored="false" />
+	<field name="slash-comments" type="sint" indexed="true" stored="true" />
 	
 	<field name="all_text" type="text" indexed="true" stored="false" multiValued="true" />
 	<copyField source="source" dest="all_text" />