nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis John McGibbney (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2172) Parsing whitespace not just tabs in contenttype-mapping.txt
Date Thu, 03 Dec 2015 08:25:10 GMT

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

Lewis John McGibbney commented on NUTCH-2172:
---------------------------------------------

I think that is the point that Seb is making!

> Parsing whitespace not just tabs in contenttype-mapping.txt
> -----------------------------------------------------------
>
>                 Key: NUTCH-2172
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2172
>             Project: Nutch
>          Issue Type: Bug
>          Components: metadata
>    Affects Versions: 1.10
>         Environment: Macosx, Java 8
>            Reporter: Nicola Tonellotto
>            Priority: Minor
>              Labels: easyfix, newbie
>         Attachments: NUTCH-2172-1.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> The index-more plugin uses the conf/contenttype-mapping.txt file to build up the mimeMap
hash table (in the readConfiguration() method).
> The line splitting is performed around "\t", so it silently skip lines separated by simple
spaces or more than one tab (see line 325).
> Changing the single-char string "\t" with the regex "\\s+" should do the magic.



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

Mime
View raw message