Github user sujen1412 commented on a diff in the pull request:
https://github.com/apache/nutch/pull/59#discussion_r39821056
--- Diff: src/java/org/apache/nutch/crawl/CrawlDb.java ---
@@ -236,10 +237,10 @@ public int run(String[] args) throws Exception {
* Used for Nutch REST service
*/
@Override
- public Map<String, Object> run(Map<String, String> args, String crawlId)
throws Exception {
+ public Map<String, Object> run(Map<String, Object> args, String crawlId)
throws Exception {
--- End diff --
@lewismc, making it object allows me to parse multiple inputs in the Map
args(for ex- segments in the updatedb job) as an Arraylist instead of string
parsing. Also this change the 1x code similar to 2x and also makes porting the
webui easier as it expects an Object.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---