You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Brian Hill <hi...@yosemite.cc.ca.us> on 2006/06/29 04:59:47 UTC
Multiple crawl-urlfilter.txt files?
I'm having a fairly serious problem here and I'd be very appreciative if
anyone could toss me some ideas.
I am responsible for two separate and independent websites, and recently
the decision was made that they both needed search facilities. One
wrinkle in the plan, however, was that I only had one physical server to
implement both search engines on. I decided to go with Nutch 0.7.2, and
have two web interfaces configured in tomcat. There are two IP's
configured in Apache, routing to two separate war file installations,
which permits two independent interfaces. The indexer is run twice,
generating two independent search databases for the parent sites, and
each of the search interfaces draws its results from the appropriate
database.
My problem is the crawl-urlfilter.txt file at
/nutch/conf/crawl-urlfilter.txt. Because the single crawler is crawling
both websites, the software requires that I put the masks for both URL's
into the file. This wouldn't be a problem, except that SiteB has one
single link in to SiteA. Nutch is following that link, and because it's
in the urlfilter.txt file the SiteB index ends up with a complete index
of BOTH websites.
Is there any way to specify a different crawl-urlfilter.txt file for
each crawl? When I index SiteA, I have a handful of URL masks that I
want to have available to it. When I index SiteB, I have a different set
of URL masks that I want available there. Am I going to need two
completely separate Nutch installations?
Brian Hill
Re: Multiple crawl-urlfilter.txt files?
Posted by Matthew Hannigan <ml...@zip.com.au>.
On Wed, Jun 28, 2006 at 07:59:47PM -0700, Brian Hill wrote:
> [ ... ]
> Is there any way to specify a different crawl-urlfilter.txt file for
> each crawl? When I index SiteA, I have a handful of URL masks that I
> want to have available to it. When I index SiteB, I have a different set
> of URL masks that I want available there. Am I going to need two
> completely separate Nutch installations?
I copy the entire conf dir and set NUTCH_CONF_DIR to where I put it.
I believe this is documented somewhere :-)
In fact I have an entire script front-end to nutch that insists
NUTCH_CONF_DIR is set, because I don't want nutch to assume anything.
The nutch command's behaviour should be independent of your pwd
or where the 'real' nutch command is.
The other slight irritation is that nutch dumps working files
into a subdir of your current dir, so that has to be writable.
Matt