Hi, I'm resending a patch I sent one or two weeks ago, but which hasn't been committed yet. It fixes the bug that summaries might change if the search result page gets reloaded. I'm sure it doesn't break anything, so can someone please commit it?
The other file is the Nutch logo, but this time with a transparent background. This way it will look much better when used on a non-white background, like on the Wiki pages. Regards Daniel -- http://www.danielnaber.de
<<attachment: logo_nutch.gif>>
Index: Summarizer.java
===================================================================
RCS file: /cvsroot/nutch/nutch/src/java/net/nutch/searcher/Summarizer.java,v
retrieving revision 1.5
diff -u -r1.5 Summarizer.java
--- Summarizer.java 4 Sep 2003 21:17:25 -0000 1.5
+++ Summarizer.java 19 May 2004 21:37:05 -0000
@@ -124,12 +124,7 @@
if (numToks1 < numToks2) {
return -1;
} else if (numToks1 == numToks2) {
- int result = excerpt1.numFragments() - excerpt2.numFragments();
- if (result == 0) {
- return excerpt1.hashCode() - excerpt2.hashCode();
- } else {
- return result;
- }
+ return excerpt1.numFragments() - excerpt2.numFragments();
} else {
return 1;
}
