You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Sujan Kumar Suppala (JIRA)" <ji...@apache.org> on 2016/10/14 11:46:21 UTC
[jira] [Created] (NUTCH-2325) INJECT REST call sets overwrite and
update to false, which is wrong
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)