The NutchBeans looks to see if your using multiple
search servers or a local index/segment set up. Code
below.
If using NDFS it would have to connect to the
namenode, and query the fs through there.
public NutchBean(File dir) throws IOException {
File servers = new File(dir,
"search-servers.txt");
if (servers.exists()) {
LOG.info("searching servers in " +
servers.getCanonicalPath());
init(new DistributedSearch.Client(servers));
} else {
init(new File(dir, "index"), new File(dir,
"segments"));
}
}
---
--- Fredrik Andersson <[EMAIL PROTECTED]>
wrote:
> I don't get why the servlet/tomcat even needs to be
> aware of the
> filesystem? I've just used custom-made search
> interfaces to
> Lucene/Nutch indices, but I figured that the actual
> searching and
> fetching of the results, in the general Nutch
> interface, was conducted
> through an abstraction layer, bean or whatever you'd
> call it?
>
> Fredrik
>
> On 8/23/05, Jay Pound
> <[EMAIL PROTECTED]> wrote:
> > your right, tomcat cannot see the nutch
> filesystem!!!
> > -J
> > ----- Original Message -----
> > From: "Bill Down" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Tuesday, August 23, 2005 2:07 PM
> > Subject: Re: Searching NDFS with Tomcat
> >
> >
> > > >From what I gathered, there is currently no
> support to
> > > search an NDFS file system from a browser.
> > >
> > > You can only search a local or distributed
> search
> > > server. Can someone verify this for me?
> > >
> > > Thanks
> > >
> > > --- lucene_nutch_ lucene_nutch_2005
> > > <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hi,
> > > >
> > > > I know NDFS is in still under development, but
> can
> > > > someone please tell me how I would go about
> > > > launching
> > > > Tomcat to search and index in NDFS? My NDFS
> is set
> > > > up
> > > > with a namenode and 2 datanodes. I want to
> launch
> > > > Tomcat to search within the namenode.
> > > >
> > > > Has anyone done this? If I'm on the wrong
> track,
> > > > please let me know.
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > > >
> ____________________________________________________
> > > > Start your day with Yahoo! - make it your home
> page
> > > > http://www.yahoo.com/r/hs
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> ____________________________________________________
> > > Start your day with Yahoo! - make it your home
> page
> > > http://www.yahoo.com/r/hs
> > >
> > >
> > >
> >
> >
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers