nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luke Baker <l...@gospelcom.net>
Subject Re: Simple bug in jsp pages.
Date Fri, 11 Mar 2005 18:40:41 GMT
On 03/11/2005 01:31 PM, Piotr Kosiorowski wrote:
> Hello all,
> In latest SVN version (but it was introduced in CVS I think) there is a 
> simple error in two JSP pages.
> refine-query-init.jsp :
> String urls = 
> org.apache.nutch.util.NutchConf.get("extension.ontology.urls");
> should be:
> String urls = 
> org.apache.nutch.util.NutchConf.get().get("extension.ontology.urls");
> 
> And in search.jsp:
>  NutchConf.get().getInt("extension.clustering.hits-to-cluster", 100);
> should be:
>  NutchConf.get().getInt("extension.clustering.hits-to-cluster", 100);
> 
> It was ommited when a lot of classes where changed not to use static 
> NutchConf methods. Right now NutchConf has only two static methods get() 
> and main(String[]) so these calls would be not correct. I am surprised 
> nobody noticed it for quite a while, refine-query-init.jsp seems to be 
> commented out by default, but the code
> in search.jsp should be executed  in my opinion.
> Regards,
> Piotr

I can confirm that without these fixes that with the latest version of 
the code in the repository, the webapp fails when attempting to search. 
  Everything works, with the suggested fixes in place.

Luke

Mime
View raw message