[ 
https://issues.apache.org/jira/browse/NUTCH-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris A. Mattmann resolved NUTCH-1969.
--------------------------------------
    Resolution: Fixed

- thanks [[email protected]] I committed this!

{noformat}
[chipotle:~/tmp/nutch-1.10-trunk] mattmann% svn commit -m "Fix for NUTCH-1969 
URL Normalizer properly handling slashes contributed by Markus Jelsma."
Sending        CHANGES.txt
Sending        build.xml
Sending        src/plugin/build.xml
Adding         src/plugin/urlnormalizer-slash
Adding         src/plugin/urlnormalizer-slash/build.xml
Adding         src/plugin/urlnormalizer-slash/data
Adding         src/plugin/urlnormalizer-slash/data/slashes.txt
Adding         src/plugin/urlnormalizer-slash/ivy.xml
Adding         src/plugin/urlnormalizer-slash/plugin.xml
Adding         src/plugin/urlnormalizer-slash/src
Adding         src/plugin/urlnormalizer-slash/src/java
Adding         src/plugin/urlnormalizer-slash/src/java/org
Adding         src/plugin/urlnormalizer-slash/src/java/org/apache
Adding         src/plugin/urlnormalizer-slash/src/java/org/apache/nutch
Adding         src/plugin/urlnormalizer-slash/src/java/org/apache/nutch/net
Adding         
src/plugin/urlnormalizer-slash/src/java/org/apache/nutch/net/urlnormalizer
Adding         
src/plugin/urlnormalizer-slash/src/java/org/apache/nutch/net/urlnormalizer/slash
Adding         
src/plugin/urlnormalizer-slash/src/java/org/apache/nutch/net/urlnormalizer/slash/SlashURLNormalizer.java
Adding         src/plugin/urlnormalizer-slash/src/test
Adding         src/plugin/urlnormalizer-slash/src/test/org
Adding         src/plugin/urlnormalizer-slash/src/test/org/apache
Adding         src/plugin/urlnormalizer-slash/src/test/org/apache/nutch
Adding         src/plugin/urlnormalizer-slash/src/test/org/apache/nutch/net
Adding         
src/plugin/urlnormalizer-slash/src/test/org/apache/nutch/net/urlnormalizer
Adding         
src/plugin/urlnormalizer-slash/src/test/org/apache/nutch/net/urlnormalizer/slash
Adding         
src/plugin/urlnormalizer-slash/src/test/org/apache/nutch/net/urlnormalizer/slash/TestSlashURLNormalizer.java
Transmitting file data .........
Committed revision 1676186.
[chipotle:~/tmp/nutch-1.10-trunk] mattmann% 
{noformat}

Note the build is still broke b/c of Tika 1.8. Trying to figure it out.

> URL Normalizer properly handling slashes
> ----------------------------------------
>
>                 Key: NUTCH-1969
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1969
>             Project: Nutch
>          Issue Type: New Feature
>          Components: plugin
>    Affects Versions: 1.9
>            Reporter: Markus Jelsma
>            Assignee: Chris A. Mattmann
>             Fix For: 1.10
>
>         Attachments: NUTCH-1969.patch
>
>
> This is a URL normalizer we use that is simple to use and generate for  
> dealing with hosts that mix up slash suffixed URL's with non-slash suffixed 
> URL's.
> It is similar to the host nomalizer, reducing the number of duplicates while 
> crawling. It takes the new line delimited rules, separated by either a 
> tabulator or whitespace, followed by a + (PLUS) or - (MINUS) sign denoting 
> whether or not a slash is to be added to the path.
> The normalizer ignores pages that look like files with extensions, see tests.
> Note: the normalizer must be enhanced to not take hosts as first argument of 
> a rule, but host/path prefixes because some hosts need different rules 
> depending on the root path. For example,
> * example.org/cms/news/1/2/3/4 is a CMS that doesn't accept slashes, if they 
> are suffixed, the user is redirected to a non-slash page;
> * example.org/files/a/b/ wants to do it just the other way around.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to