Update of /cvsroot/nutch/nutch/src/web/jsp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12156/src/web/jsp

Modified Files:
        cluster.jsp 
Log Message:
Make sure an exception'ed cluster wouldn't cause hit page display to suffocate.


Index: cluster.jsp
===================================================================
RCS file: /cvsroot/nutch/nutch/src/web/jsp/cluster.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** cluster.jsp 9 Aug 2004 23:23:53 -0000       1.1
--- cluster.jsp 7 Oct 2004 05:04:23 -0000       1.2
***************
*** 23,29 ****
  if (clusterer != null) {
    long clusteringStart = System.currentTimeMillis();
!   clusters = clusterer.clusterHits( details, summaries );
        long clusteringDuration = start - System.currentTimeMillis();
        bean.LOG.info("Clustering took: " + clusteringDuration + " milliseconds.");
  }
  
--- 23,33 ----
  if (clusterer != null) {
    long clusteringStart = System.currentTimeMillis();
!   try {
!     clusters = clusterer.clusterHits( details, summaries );
        long clusteringDuration = start - System.currentTimeMillis();
        bean.LOG.info("Clustering took: " + clusteringDuration + " milliseconds.");
+   } catch (Exception e) {
+     // failed to do clustering (see below)
+   }
  }
  
***************
*** 31,35 ****
    %>No clustering extension found.<%
  } else {
!   if (clusters == null || (clusters.length == 0)) {
      %>No clusters found.<%
    } else {
--- 35,41 ----
    %>No clustering extension found.<%
  } else {
!   if (clusters == null) {
!     %>Unable to do clustering.<%
!   } else if (clusters.length == 0) {
      %>No clusters found.<%
    } else {



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nutch-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to