Issue Details (XML | Word | Printable)

Key: NUTCH-173
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Philippe EUGENE
Votes: 2
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Nutch

PerHost Crawling Policy ( crawl.ignore.external.links )

Created: 13/Jan/06 06:17 PM   Updated: 19/Jul/06 05:34 PM
Return to search
Component/s: fetcher
Affects Version/s: 0.7, 0.7.1, 0.8
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch.txt 2006-01-13 06:20 PM Philippe EUGENE 1 kB
Text File Licensed for inclusion in ASF works patch08-new.patch 2006-05-21 01:47 AM Stefan Neufeind 3 kB
Text File Licensed for inclusion in ASF works patch08.txt 2006-01-13 06:20 PM Philippe EUGENE 2 kB
Issue Links:
Reference
 

Resolution Date: 19/Jul/06 05:34 PM


 Description  « Hide
There is two major way of crawl in Nutch.

Intranet Crawl : forbidden all, allow somes few host

Whole-web crawl : allow all, forbidden few thinks

I propose a third type of crawl.

Directory Crawl : The purpose of this crawl is to manage few thousands of host wihtout managing rules pattern in UrlFilterRegexp.

I made two patch for : 0.7, 0.7.1 and 0.8-dev

I propose a new boolean property in nutch-site.xml : crawl.ignore.external.links, with false value at default.
By default this new feature don't modify the behavior of nutch crawler.

When you setup this property to true, the crawler don't fetch external links of the host.
So the crawl is limited to the host that you inject at the beginning at the crawl.

I know there is some proposal of new crawl policy using the CrawlDatum in 0.8-dev branch.
This feature colud be a easiest way to add quickly new crawl feature to nutch, waiting for a best way to improve crawl policy.

I post two patch.
Sorry for my very poor english

Philippe



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Philippe EUGENE added a comment - 13/Jan/06 06:20 PM
Patch for 0.7 and 0.7.1 version

Philippe EUGENE made changes - 13/Jan/06 06:20 PM
Field Original Value New Value
Attachment patch.txt [ 12321919 ]
Philippe EUGENE added a comment - 13/Jan/06 06:20 PM
Patch for 0.8-dev version

Philippe EUGENE made changes - 13/Jan/06 06:20 PM
Attachment patch08.txt [ 12321920 ]
Doug Cutting added a comment - 20/Jan/06 06:45 AM
Couldn't you instead use a prefix-urlfilter generated from your crawl seed?

Philippe EUGENE added a comment - 24/Jan/06 07:42 PM
I have more than 5.000 hosts in my directory. I'm not sure about crawl performance with more than 5.000 rules.
It's easier for me to just manage a boolean value in the nutch conf.
I know this is not the natural way of crawl with Nutch, but it could be interested for somes nutch's user.
The most important problem : scoring from external links is affected by this patch.

Christophe Noel added a comment - 20/Apr/06 04:13 PM
We are TENS of nutch users using this precious patch.

Most of nutch users are not making whole-web search engine (too much hardware needed) but are willing to develop dedicated search engines.

We crawl sometimes 1000, sometimes 25000 web servers and it really slow down the crawling with 25000 entries in prefix-urlfilter.

This patch is NEEDED !

Christophe Noël
CETIC
Belgium


Doug Cutting added a comment - 21/Apr/06 02:25 AM
+1, with a few modifications.

Can you please re-generate this against the current sources? This patch does not apply for me.

Also, the fromHost should only be computed if crawl.ignore.external.links is true.

Finally, please add an entry to conf/nutch-default.xml for the new parameter in your patch.

Thanks!


Stefan Neufeind made changes - 19/May/06 04:14 AM
Link This issue relates to NUTCH-271 [ NUTCH-271 ]
Stefan Neufeind added a comment - 19/May/06 10:40 PM
Applies fine and works for me on 0.7.2.

Stefan Neufeind added a comment - 21/May/06 01:47 AM
Here is the 08-patch, corrected to work against nightly from 2006-05-20.
Also fromHost is now only generated if really needed and nutch-default.xml is patched as well. By the way: Where should a property for "crawl" be located in the config-file? In the "fetcher"-section? In that case please somebody move it up/down or rename the property before including it in the dev-tree.

But could somebody please review it quickly? I'm not sure it's 100% correct. Still investigating on my side ...


Stefan Neufeind made changes - 21/May/06 01:47 AM
Attachment patch08-new.patch [ 12334366 ]
Andrzej Bialecki added a comment - 19/Jul/06 05:34 PM
Patch applied to trunk/ . Thank you!

Andrzej Bialecki made changes - 19/Jul/06 05:34 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Repository Revision Date User Message
ASF #423539 Wed Jul 19 17:35:08 UTC 2006 ab Add ability to limit outlinks to only include initial hosts (NUTCH-173).
Files Changed
MODIFY /lucene/nutch/trunk/src/java/org/apache/nutch/parse/ParseOutputFormat.java
MODIFY /lucene/nutch/trunk/conf/nutch-default.xml