Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-1232 Remove site field from index-basic

Markus Jelsma943aed79faee
diff --git a/CHANGES.txt b/CHANGES.txt
index 8aa3b8657..1ff09c480 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,7 @@
Nutch Change Log
+* NUTCH-1232 Remove site field from index-basic (markus)
+
* NUTCH-1239 Webgraph should remove deleted pages from segment input (markus)
* NUTCH-1238 Fetcher throughput threshold must start before feeder finished (markus)
diff --git a/conf/schema-solr4.xml b/conf/schema-solr4.xml
index ade17da0d..4d281f2bb 100644
--- a/conf/schema-solr4.xml
+++ b/conf/schema-solr4.xml
@@ -310,7 +310,6 @@
<!-- fields for index-basic plugin -->
<field name="host" type="url" stored="false" indexed="true"/>
- <field name="site" type="string" stored="false" indexed="true"/>
<field name="url" type="url" stored="true" indexed="true" required="true"/>
<!-- stored=true for highlighting, use term vectors and positions for fast highlighting -->
<field name="content" type="text_general" stored="true" indexed="true"/>
diff --git a/conf/schema.xml b/conf/schema.xml
index 0dc895804..2b80b40de 100644
--- a/conf/schema.xml
+++ b/conf/schema.xml
@@ -22,6 +22,7 @@
https://issues.apache.org/jira/browse/NUTCH-994
https://issues.apache.org/jira/browse/NUTCH-997
https://issues.apache.org/jira/browse/NUTCH-1058
+ https://issues.apache.org/jira/browse/NUTCH-1232
and
http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/
example/solr/conf/schema.xml?view=markup
@@ -73,8 +74,7 @@
<field name="boost" type="float" stored="true" indexed="false"/>
<!-- fields for index-basic plugin -->
- <field name="host" type="url" stored="false" indexed="true"/>
- <field name="site" type="string" stored="false" indexed="true"/>
+ <field name="host" type="string" stored="false" indexed="true"/>
<field name="url" type="url" stored="true" indexed="true"
required="true"/>
<field name="content" type="text" stored="false" indexed="true"/>
diff --git a/conf/solrindex-mapping.xml b/conf/solrindex-mapping.xml
index a187af847..5e329ffbe 100644
--- a/conf/solrindex-mapping.xml
+++ b/conf/solrindex-mapping.xml
@@ -32,7 +32,6 @@
-->
<fields>
<field dest="content" source="content"/>
- <field dest="site" source="site"/>
<field dest="title" source="title"/>
<field dest="host" source="host"/>
<field dest="segment" source="segment"/>
diff --git a/src/plugin/index-basic/src/java/org/apache/nutch/indexer/basic/BasicIndexingFilter.java b/src/plugin/index-basic/src/java/org/apache/nutch/indexer/basic/BasicIndexingFilter.java
index aa4634586..28e3140f8 100644
--- a/src/plugin/index-basic/src/java/org/apache/nutch/indexer/basic/BasicIndexingFilter.java
+++ b/src/plugin/index-basic/src/java/org/apache/nutch/indexer/basic/BasicIndexingFilter.java
@@ -67,7 +67,6 @@ public class BasicIndexingFilter implements IndexingFilter {
if (host != null) {
doc.add("host", host);
- doc.add("site", host);
}
doc.add("url", reprUrlString == null ? urlString : reprUrlString);