Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-989 Index-basic plugin and Solr schema now use date fieldType for tstamp field

Markus Jelsmaf1bc8de8f2c3
diff --git a/CHANGES.txt b/CHANGES.txt
index 36bfa75da..c0a57287c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Release 2.0 - Current Development
+* NUTCH-989 Index-basic plugin and Solr schema now use date fieldType for tstamp field (markus)
+
* NUTCH-888 Remove parse-rss and add tests for rss to parse-tika (jnioche)
* NUTCH-991 SolrDedup must issue a commit (markus)
diff --git a/conf/schema.xml b/conf/schema.xml
index 27159efe4..bdef021cd 100644
--- a/conf/schema.xml
+++ b/conf/schema.xml
@@ -28,6 +28,8 @@
omitNorms="true"/>
<fieldType name="float" class="solr.FloatField"
omitNorms="true"/>
+ <fieldType name="date" class="solr.DateField"
+ omitNorms="true"/>
<fieldType name="text" class="solr.TextField"
positionIncrementGap="100">
<analyzer>
@@ -71,7 +73,7 @@
<field name="content" type="text" stored="false" indexed="true"/>
<field name="title" type="text" stored="true" indexed="true"/>
<field name="cache" type="string" stored="true" indexed="false"/>
- <field name="tstamp" type="long" stored="true" indexed="false"/>
+ <field name="tstamp" type="date" stored="true" indexed="false"/>
<!-- fields for index-anchor plugin -->
<field name="anchor" type="string" stored="true" indexed="true"