Sure you can set up separate search databases. All you need to do is change the way NutchBean objects are created and cached. Currently the search.jsp stores a single NutchBean in the servlet context. Change this so that it stores more than one, and use a different NutchBean depending on the database that your user wishes to search. If you want to allow your user to search more than one database at a time, I think you'll have to change (or subclass) NutchBean so that its init( File, File ) method can take a list of segments directories as an argument.
Regards, David. Date: Sun, 24 Jul 2005 21:40:27 -0400 From: blackwater dev <[EMAIL PROTECTED]> So there is no way to set up different databases? I mean if I crawl a series of web pages and put them one place then crawl a series of job webplaces and put them in another folder, how can I let the web user click a button and search either the general web pages or the specific job web sites? To do this I would somehow be able to tell tomcat where to get the folder from within the jsp. Thanks! On 7/24/05, Feng (Michael) Ji <[EMAIL PROTECTED]> wrote: >=20 > I think tomcat doesn't do indexing at all; >=20 > just follow the tutorial under doc in Nutch home; >=20 > after getting your segments, starting tomcat at the > same level will give the tomcat direction where to > find SE indexed data; >=20 > Hope that helps, >=20 > Michael, >=20 > --- blackwater dev <[EMAIL PROTECTED]> wrote: >=20 > > Forgive me if this is a dumb question but how can I > > tell nutch where > > to pull the files for the index? I am just getting > > exceptions now > > when I do a search. How does the code under tomcat > > know where I pull > > the files from the crawl? > > > > > > Thanks! > > >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ******************************************************************************** This email may contain legally privileged information and is intended only for the addressee. It is not necessarily the official view or communication of the New Zealand Qualifications Authority. If you are not the intended recipient you must not use, disclose, copy or distribute this email or information in it. If you have received this email in error, please contact the sender immediately. NZQA does not accept any liability for changes made to this email or attachments after sending by NZQA. All emails have been scanned for viruses and content by MailMarshal. NZQA reserves the right to monitor all email communications through its network. ******************************************************************************** ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nutch-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-general
