Branch: Tag:

2003-08-15

2003-08-15 13:58:48 by Mattias Andersson <matan@lysator.liu.se>

Don't crawl internal uris when periodic crawl is executed.

Rev: lib/modules/Search.pmod/Utils.pmod:1.39

1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Utils.pmod,v 1.38 2003/08/14 14:22:54 mattias Exp $ + // $Id: Utils.pmod,v 1.39 2003/08/15 13:58:48 mattias Exp $      #if !constant(report_error)   #define report_error werror
532: Inside #if constant (roxen)
   object dbp = db_profiles[id];    if(dbp && dbp->ready_to_crawl()) {    WERR("Scheduler starts crawling "+id); -  dbp->action_reindex(); +  dbp->recrawl();    entry_queue = ([]);    }    }
579:    object dbp = db_profiles[id];    if(dbp && dbp->ready_to_crawl()) {    WERR("Scheduler starts crawling "+id); +  dbp->recrawl(); +  entry_queue = ([]); +  } +  } +  +  WERR(sizeof(crawl_queue)+" profiles in crawl queue."); +  foreach(indices(crawl_queue), int id) { +  if(crawl_queue[id]>t || !db_profiles[id]) continue; +  object dbp = db_profiles[id]; +  if(dbp && dbp->ready_to_crawl()) { +  WERR("Scheduler starts crawling "+id);    dbp->start_indexer();    }    }