Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Fix for NUTCH-1835: Nutch's Solr schema doesn't work with Solr 4.9 because of the RealTimeGet handler.

Chris Mattmann852125b189ae
diff --git a/CHANGES.txt b/CHANGES.txt
index 5adb5340e..b4361cc34 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Nutch Current Development
+* NUTCH-1835 Nutch's Solr schema doesn't work with Solr 4.9 because of the RealTimeGet handler (mattmann)
+
* NUTCH-1833 Include version number within nutch binary usage statement (Rishi Verma via mattmann)
* NUTCH-1832 Make Nutch work without an indexer (mattmann)
diff --git a/conf/schema.xml b/conf/schema.xml
index 2ebfbb42b..7a3279b1f 100644
--- a/conf/schema.xml
+++ b/conf/schema.xml
@@ -117,6 +117,10 @@
<!-- fields for tld plugin -->
<field name="tld" type="string" stored="false" indexed="false"/>
+
+ <!-- to work with Solr 4.9 and beyond that use RealTimeGetHandler -->
+ <field name="_version_" type="long" indexed="true" stored="true"/>
+
</fields>
<uniqueKey>id</uniqueKey>
<defaultSearchField>content</defaultSearchField>