Author: markus
Date: Mon May 23 10:17:14 2011
New Revision: 1126417
URL: http://svn.apache.org/viewvc?rev=1126417&view=rev
Log:
NUTCH-994 Fine tune Solr schema
Modified:
nutch/branches/branch-1.3/CHANGES.txt
nutch/branches/branch-1.3/conf/schema.xml
Modified: nutch/branches/branch-1.3/CHANGES.txt
URL:
http://svn.apache.org/viewvc/nutch/branches/branch-1.3/CHANGES.txt?rev=1126417&r1=1126416&r2=1126417&view=diff
==============================================================================
--- nutch/branches/branch-1.3/CHANGES.txt (original)
+++ nutch/branches/branch-1.3/CHANGES.txt Mon May 23 10:17:14 2011
@@ -2,6 +2,8 @@ Nutch Change Log
Release 1.3 - 4/21/2011
+* NUTCH-994 Fine tune Solr schema (markus)
+
* NUTCH-997 IndexingFitlers to store Date objects instead of Strings (jnioche)
* NUTCH-996 Indexer adds solr.commit.size+1 docs (markus)
Modified: nutch/branches/branch-1.3/conf/schema.xml
URL:
http://svn.apache.org/viewvc/nutch/branches/branch-1.3/conf/schema.xml?rev=1126417&r1=1126416&r2=1126417&view=diff
==============================================================================
--- nutch/branches/branch-1.3/conf/schema.xml (original)
+++ nutch/branches/branch-1.3/conf/schema.xml Mon May 23 10:17:14 2011
@@ -15,21 +15,28 @@
and limitations under the License.
-->
<!--
- Description: This document contains solr schema definition to be
- used with solr integration currently build into Nutch. See
+ Description: This document contains Solr 3.1 schema definition to
+ be used with Solr integration currently build into Nutch. See
https://issues.apache.org/jira/browse/NUTCH-442
- https://issues.apache.org/jira/browse/NUTCH-699 for more info.
+ https://issues.apache.org/jira/browse/NUTCH-699
+ https://issues.apache.org/jira/browse/NUTCH-994
+ https://issues.apache.org/jira/browse/NUTCH-997
+ and
+ http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/
+ example/solr/conf/schema.xml?view=markup
+ for more info.
-->
-<schema name="nutch" version="1.1">
+<schema name="nutch" version="1.3">
<types>
- <fieldType name="string" class="solr.StrField"
- sortMissingLast="true" omitNorms="true"/>
- <fieldType name="long" class="solr.LongField"
- omitNorms="true"/>
- <fieldType name="float" class="solr.FloatField"
- omitNorms="true"/>
- <fieldType name="date" class="solr.DateField"
- omitNorms="true"/>
+ <fieldType name="string" class="solr.StrField" sortMissingLast="true"
+ omitNorms="true"/>
+ <fieldType name="long" class="solr.TrieLongField" precisionStep="0"
+ omitNorms="true" positionIncrementGap="0"/>
+ <fieldType name="float" class="solr.TrieFloatField" precisionStep="0"
+ omitNorms="true" positionIncrementGap="0"/>
+ <fieldType name="date" class="solr.TrieDateField" precisionStep="0"
+ omitNorms="true" positionIncrementGap="0"/>
+
<fieldType name="text" class="solr.TextField"
positionIncrementGap="100">
<analyzer>
@@ -53,7 +60,6 @@
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1"/>
- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>
</types>
@@ -95,14 +101,18 @@
<field name="subcollection" type="string" stored="true"
indexed="true" multiValued="true"/>
- <!-- fields for feed plugin -->
+ <!-- fields for feed plugin (tag is also used by
microformats-reltag)-->
<field name="author" type="string" stored="true" indexed="true"/>
- <field name="tag" type="string" stored="true" indexed="true"/>
+ <field name="tag" type="string" stored="true" indexed="true"
multiValued="true"/>
<field name="feed" type="string" stored="true" indexed="true"/>
<field name="publishedDate" type="date" stored="true"
indexed="true"/>
<field name="updatedDate" type="date" stored="true"
indexed="true"/>
+
+ <!-- fields for creativecommons plugin -->
+ <field name="cc" type="string" stored="true" indexed="true"
+ multiValued="true"/>
</fields>
<uniqueKey>id</uniqueKey>
<defaultSearchField>content</defaultSearchField>