Hello,
I am looking for a way to search for multiple indexes from one webapp
and found some code. I can allways make one webapp = one website but
what if it grows?
Is it possible to make this code work:
in search.jsp
/*
Comment this original line of code and use code below.
Configuration nutchConf = NutchConfiguration.get(application);
*/
Configuration nutchConf = application.getAttribute("myconfig");
if (nutchConf == null) {
nutchConf = new Configuration();
nutchConf.addDefaultResource("nutch-default.xml");
nutchConf.addFinalResource("nutch-site2.xml");
I was looking into nutch api, hadoop api but I can't make it work.
Trying Configuration nutchConf = NutchConfiguration.get(application);
nutchConf.set("searcher.dir") and nothing
using context:
application.setAttribute
addNutchResource (from NutchConfiguration.java)
But nothing seems to work.
After setting attribute I can read it with get or getAttribute but it is
always searching from WEB-INF/classess/nutch-site.xml
Thanks for any help,
Bartosz