You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by ma...@apache.org on 2014/11/17 22:53:09 UTC

svn commit: r1640239 - /nutch/trunk/conf/schema.xml

Author: mattmann
Date: Mon Nov 17 21:53:08 2014
New Revision: 1640239

URL: http://svn.apache.org/r1640239
Log:
Fix for NUTCh-1890 Major Typo in Documentation for Integrating Nutch and Solr identified by Boadu Akoto Charles Jnr contributed by mattmann. This closes #5.

Modified:
    nutch/trunk/conf/schema.xml

Modified: nutch/trunk/conf/schema.xml
URL: http://svn.apache.org/viewvc/nutch/trunk/conf/schema.xml?rev=1640239&r1=1640238&r2=1640239&view=diff
==============================================================================
--- nutch/trunk/conf/schema.xml (original)
+++ nutch/trunk/conf/schema.xml Mon Nov 17 21:53:08 2014
@@ -69,6 +69,8 @@
         <field name="id" type="string" stored="true" indexed="true"
             required="true"/>
 
+        <field name="text" type="text" stored="false" indexed="true" multiValued="true"/>
+
         <!-- core fields -->
         <field name="segment" type="string" stored="true" indexed="false"/>
         <field name="digest" type="string" stored="true" indexed="false"/>
@@ -125,4 +127,15 @@
     <uniqueKey>id</uniqueKey>
     <defaultSearchField>content</defaultSearchField>
     <solrQueryParser defaultOperator="OR"/>
+
+    <!-- copyField commands copy one field to another at the time a document
+       is added to the index. It's used either to index the same field differently,
+       or to add multiple fields to the same field for easier/faster searching. 
+    -->
+    <copyField source="content" dest="text"/>
+    <copyField source="url" dest="text"/>
+    <copyField source="title" dest="text"/>
+    <copyField source="anchor" dest="text"/>
+    <copyField source="author" dest="text"/>
+
 </schema>