You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Markus Jelsma (JIRA)" <ji...@apache.org> on 2016/10/14 13:35:21 UTC

[jira] [Updated] (NUTCH-2325) Inject REST call to set overwrite and update parameters

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

Markus Jelsma updated NUTCH-2325:
---------------------------------
    Summary: Inject REST call to set overwrite and update parameters  (was: INJECT REST call sets overwrite and update to false, which is wrong)

> Inject REST call to set overwrite and update parameters
> -------------------------------------------------------
>
>                 Key: NUTCH-2325
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2325
>             Project: Nutch
>          Issue Type: Bug
>          Components: injector
>    Affects Versions: 1.12
>            Reporter: Sujan Kumar Suppala
>         Attachments: NUTCH-2325.patch
>
>
> INJECT REST uses the old method invocation which sets overwrite and update to false, which is wrong.
> https://github.com/apache/nutch/blob/master/src/java/org/apache/nutch/crawl/Injector.java#L514
> There should be an option to set the overwrite and update in the REST request.
> eg:
> {quote}
> {noformat}
> POST /job/create
>  {
>      "type":"INJECT",
>      "confId":"default", 
>      "crawlId":"TestCrawl",
>      "args": {
>                  "url_dir":"c:\\cygwin64\\tmp\\1475752235404-0",
>                 "overwrite":"true",
>                 "update":"true"
>                 }
>  }
> {noformat}
> {quote}



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