Sujan Kumar Suppala created NUTCH-2325:
------------------------------------------

             Summary: INJECT REST call sets overwrite and update to false, 
which is wrong
                 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


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)

Reply via email to