Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-1877 Suffix URL filter to ignore query string by default

Sebastian Nagel7b1126404754
diff --git a/CHANGES.txt b/CHANGES.txt
index 26b8aad51..c60317d28 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Nutch Current Development 1.10-SNAPSHOT
+* NUTCH-1877 Suffix URL filter to ignore query string by default (markus via snagel)
+
* NUTCH-1890 Major Typo in Documentation for Integrating Nutch and Solr (Boadu Akoto Charles Jnr, mattmann)
* NUTCH-1887 Specify HTMLMapper to use in TikaParser (jnioche)
diff --git a/conf/suffix-urlfilter.txt.template b/conf/suffix-urlfilter.txt.template
index b510d4af5..6f02aed36 100644
--- a/conf/suffix-urlfilter.txt.template
+++ b/conf/suffix-urlfilter.txt.template
@@ -2,8 +2,19 @@
# case-insensitive, allow unknown suffixes
+I
-# uncomment the line below to filter on url path
-#+P
+
+# filter on URL path only
++P
+# comment out to filter on complete URL
+# but be aware that the pattern
+# .com
+# will then reject
+# http://xyz.com
+# http://xyz.com/search?q=foo.com
+# while the pattern
+# .mp3
+# will not apply to (URLs will pass)
+# http://xyz.com/music.mp3?q=abc
### prohibit these
# pictures