Java Mailing List Archive

http://www.java2.5341.com/

Home » nutch-user.lucene »

specify nutchConfiguration File

Jan Philippe Wimmer

2010-04-21


Author LoginPost Reply
Hi,

how do i set up a specific crawldb in my own Java App?

I tried to do it like the following snip:

   Configuration nutchConf = NutchConfiguration.create();
 
   //nutchConf.addResource(new Path(prop.getProperty("nutchPath")));
   Path configPath = new
Path("/cygdrive/f/Workspaces/Nutch_trunk_searcher/conf/nutch-site.xml");
   nutchConf.addResource(configPath);

But it doesn't work.

Can somebody give me a hint?

Thx Philippe
©2008 java2.5341.com - Jax Systems, LLC, U.S.A.