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

Sebastian Nagel commented on NUTCH-1643:
----------------------------------------

Hi [~talat], unconditionally truncating to zero instead to "http.content.limit" 
is no option, you may be interested in only the first kB of  a document (e.g. 
meta tags only). HTML is successfully parsed even if truncated. But, yes, in 
general it's a good idea to optionally skip fetching of otherwise truncated 
docs. I would prefer a property with "http" prefix to avoid confusions.

> Unnecessary fetching with http.content.limit when using protocol-http
> ---------------------------------------------------------------------
>
>                 Key: NUTCH-1643
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1643
>             Project: Nutch
>          Issue Type: Bug
>          Components: protocol
>    Affects Versions: 2.1, 2.2, 2.2.1
>            Reporter: Talat UYARER
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: NUTCH-1643.patch, NUTCH-1643v2.patch, NUTCH-1643v3.patch
>
>
> In protocol-http, Even If I have http.content.limit value set, protocol-http 
> fetches files of all sizes (larger files are fetched until limit allows). 
> But when Parsing, parser skips incomplete files (if parser.skip.truncated 
> configuration is true). It seems like an unnecessary effort to partially 
> fetch contents larger than limit if they are not gonna be parsed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to