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



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to