Hi:

At least in nutch 0.8.X you can filter the crawldb, linkdb and segments
using URL patterns (e.g. editing  regex-urlfilter.txt). Just execute this
command:

"nutch_home/bin/nutch mergedb"

It will answer the usage information:

CrawlDbMerger output_crawldb crawldb1 [crawldb2 crawldb3 ...] [-filter]
       output_crawldb  output CrawlDb
       crawldb1 ...    input CrawlDb-s
       -filter use URLFilters on urls in the crawldb(s)

So, in order to use it run a command like:

"nutch_home/bin/nutch mergedb output_crawldb your_crawldb -filter"

Before running you have to edit edit regex-urlfilter.txt, if you are using
urlfilter-regex plugin, adding the URL patterns you want to filter.

In order to check it works, dump your crawldb and the filtered one, using
"readdb" nutch command, and make a diff.

Hope it helps.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to