*** analysis/StopFilter.java.old Thu Jun 16 07:42:28 2005 --- analysis/StopFilter.java Thu Jun 16 08:44:50 2005 *************** *** 94,109 **** * Returns the next input Token whose termText() is not a stop word. */ public final Token next() throws IOException { - int position = 1; - // return the first non-stop word found ! for (Token token = input.next(); token != null; token = input.next()) { ! if (!stopWords.contains(token.termText)) { ! token.setPositionIncrement( position ); return token; - } - position++; - } // reached EOS -- return null return null; } --- 94,103 ---- * Returns the next input Token whose termText() is not a stop word. */ public final Token next() throws IOException { // return the first non-stop word found ! for (Token token = input.next(); token != null; token = input.next()) ! if (!stopWords.contains(token.termText)) return token; // reached EOS -- return null return null; }