But what if one wants to show "http://" urls to users in the search results, insted of "file://" ? So remote users can navigate in my pages, and I can index them locally, without loading my web servers. I created a hybrid protocol plugin, that fetchs urls using http, but when it maches some pattern (defined at regex-localurlfilter.txt), it tries to fetch locally, changing the url to what is defined at this file. One line looks like this:
^(ftp|http):\/\/([a-zA-Z0-9_]+)\.mydomain\.com /mnt/1/$2 The ugly thing is that I couldn't use both existents plugins.. As far as I noticed, one plugin can't see other plugins classloaders, so I couldn't use File.class and Http.class in my hybrid plugin. So I copied them to my plugin dir, and because it's very ugly, I didn't post it to the developers list.. :-) Any sugestions are very appreciated. If anyone wants the code, just tell me. Best regards, Leonardo Barbosa. On Apr 12, 2005 3:26 PM, David Spencer <[EMAIL PROTECTED]> wrote: > > I made an entry in the FAQ a couple of months ago about this - see the > "How do I index my local file system" section. > > http://nutch.sourceforge.net/cgi-bin/twiki/view/Main/FAQ > > > guillaume lefebvre wrote: > > > Hi, > > > > I would like to know how I can index local files without > > starting my web server. For exemple, how to index > > "C:/file.txt" instead of "http://localhost:8080/file.txt". > > > > Thank you, > > Guillaume > > > > > > Accédez au courrier électronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn) > > > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > > _______________________________________________ > > Nutch-general mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/nutch-general > > -- ------------------------------------------------------------------------------------------ Encumbered forever by desire and ambition There's a hunger still unsatisfied Our weary eyes still stray to the horizon Though down this road we've been so many times Pink Floyd (David Gilmour/Polly Samson) - High Hopes ------------------------------------------------------------------------------------------
