nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-1990) Use URI.normalise() in BasicURLNormalizer
Date Wed, 22 Apr 2015 10:50:59 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14506814#comment-14506814
] 

Hudson commented on NUTCH-1990:
-------------------------------

SUCCESS: Integrated in Nutch-trunk #3080 (See [https://builds.apache.org/job/Nutch-trunk/3080/])
NUTCH-1990 Use URI.normalise() in BasicURLNormalizer (snagel, jnioche) (jnioche: http://svn.apache.org/viewvc/nutch/trunk/?view=rev&rev=1675305)
* /nutch/trunk/CHANGES.txt
* /nutch/trunk/src/plugin/urlnormalizer-basic/src/java/org/apache/nutch/net/urlnormalizer/basic/BasicURLNormalizer.java
* /nutch/trunk/src/plugin/urlnormalizer-basic/src/test/org/apache/nutch/net/urlnormalizer/basic/TestBasicURLNormalizer.java


> Use URI.normalise() in BasicURLNormalizer
> -----------------------------------------
>
>                 Key: NUTCH-1990
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1990
>             Project: Nutch
>          Issue Type: Improvement
>    Affects Versions: 1.9
>            Reporter: Julien Nioche
>            Assignee: Julien Nioche
>             Fix For: 1.10
>
>         Attachments: NUTCH-1990-trial1.patch, NUTCH-1990-v1.patch
>
>
> One of the things that [BasicURLNormalizer|https://github.com/apache/nutch/blob/trunk/src/plugin/urlnormalizer-basic/src/java/org/apache/nutch/net/urlnormalizer/basic/BasicURLNormalizer.java]
is to remove unnecessary dot segments in path.
> Instead of implementing the logic ourselves with some antiquated regex library, we should
simply use [http://docs.oracle.com/javase/7/docs/api/java/net/URI.html#normalize()] which
does the same and is probably more efficient.



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

Mime
View raw message