Dan, Check this out, in SearchGenerator, line ~793: ---------------------- // get the directory where the index resides Directory directory = LuceneCocoonHelper.getDirectory(new File(workDir, "index"), false); lcs.setDirectory(directory); ----------------------
That's why it does not work :))) Try "this.index" instead of "new File()". Vadim > -----Original Message----- > From: Everton, Dan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 07, 2002 9:48 PM > To: '[EMAIL PROTECTED]' > Subject: SearchGenerator Parameters > > Am I just thick or is there a particular reason that this entry > in my sitemap doesn't do what I think it should? > > <map:match pattern="findIt"> > <map:generate type="search"> > <map:parameter name="index" value="website-index"/> > </map:generate> > <map:serialize/> > </map:match> > > I would expect that would tell the SearchGenerator class to use the > index in the working directory called "website-index" instead of the > default "index". Instead I get a big ol' error from the SearchGenerator > that says > > org.apache.cocoon.ProcessingException: IOException in search: > java.io.IOException: > D:\java\jakarta-tomcat-4\work\localhost\cocoon\cocoon-files\index not a > directory > Yes there's a directory called "website-index" in the working directory > and an index has been generated in it. I just can't seem to convince > SearchGenerator to look at it instead of the default "index". > > So what have I missed? > > Thanks, > Dan > > > -- > > Dan Everton > > Engineering Infrastructure Coordinator > > Central Engineering, Boeing Australia Limited > > Phone: +61 07 3306 3288 -- Email: [EMAIL PROTECTED] > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>