hello,

after applying this patch the class can be actually used without exception "java.lang.ArrayIndexOutOfBoundsException"

br,
Sami Siren
Index: HighFreqTerms.java
===================================================================
RCS file: /cvsroot/nutch/nutch/src/java/net/nutch/indexer/HighFreqTerms.java,v
retrieving revision 1.3
diff -u -r1.3 HighFreqTerms.java
--- HighFreqTerms.java  21 May 2003 16:44:24 -0000      1.3
+++ HighFreqTerms.java  9 May 2004 11:42:35 -0000
@@ -65,7 +65,7 @@
     while (terms.next()) {
       if (terms.docFreq() > minFreq) {
         tiq.put(new TermFreq(terms.term(), terms.docFreq()));
-        if (tiq.size() > count) {                 // if tiq overfull
+        if (tiq.size() == count) {                 // if tiq overfull
           tiq.pop();                              // remove lowest in tiq
           minFreq = ((TermFreq)tiq.top()).docFreq; // reset minFreq
         }

Reply via email to