Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Fix for NUTCH-1904 Schema for Solr4 doesn't include _version_ field.

Chris Mattmann8efb64c14562
diff --git a/CHANGES.txt b/CHANGES.txt
index e6fb9064c..d7e6adb7e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Nutch Current Development 1.10-SNAPSHOT
+* NUTCH-1904 Schema for Solr4 doesn't include _version_ field (mattmann)
+
* NUTCH-1897 Easier debugging of plugin XML errors (markus)
* NUTCH-1823 Upgrade to elasticsearch 1.4.1 (Phu Kieu, markus via lewismc)
diff --git a/conf/schema-solr4.xml b/conf/schema-solr4.xml
index 1fedba3d3..e94a72f90 100644
--- a/conf/schema-solr4.xml
+++ b/conf/schema-solr4.xml
@@ -302,6 +302,7 @@
<fields>
<field name="id" type="string" stored="true" indexed="true" required="true"/>
+ <field name="_version_" type="long" indexed="true" stored="true"/>
<!-- core fields -->
<field name="segment" type="string" stored="true" indexed="false"/>