[jira] Created: (NUTCH-223) Crawl.java uses Integer.MAX_VALUE for -topN where Generator.java uses Long.MAX_VALUE for -topN

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (NUTCH-223) Crawl.java uses Integer.MAX_VALUE for -topN where Generator.java uses Long.MAX_VALUE for -topN

Sebastian Nagel (Jira)
Crawl.java uses Integer.MAX_VALUE for -topN where Generator.java uses Long.MAX_VALUE for -topN
----------------------------------------------------------------------------------------------

         Key: NUTCH-223
         URL: http://issues.apache.org/jira/browse/NUTCH-223
     Project: Nutch
        Type: Improvement
    Versions: 0.8-dev    
 Environment: ALL
    Reporter: Jeff Ritchie
    Priority: Trivial


Here is a patch for Crawl.java so that it the default value for -topN is the same as Generator.java

*** Crawl.java  Fri Mar  3 23:54:28 2006
--- fix/Crawl.java      Sat Mar  4 19:38:27 2006
***************
*** 59,65 ****
      File dir = new File("crawl-" + getDate());
      int threads = job.getInt("fetcher.threads.fetch", 10);
      int depth = 5;
!     int topN = Integer.MAX_VALUE;
 
      for (int i = 0; i < args.length; i++) {
        if ("-dir".equals(args[i])) {
--- 59,65 ----
      File dir = new File("crawl-" + getDate());
      int threads = job.getInt("fetcher.threads.fetch", 10);
      int depth = 5;
!     int topN = Long.MAX_VALUE;
 
      for (int i = 0; i < args.length; i++) {
        if ("-dir".equals(args[i])) {


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira