1 package org.apache.lucene.analysis; 2 3 18 19 import java.io.IOException ; 20 21 26 public final class LowerCaseFilter extends TokenFilter { 27 public LowerCaseFilter(TokenStream in) { 28 super(in); 29 } 30 31 public final Token next() throws IOException { 32 Token t = input.next(); 33 34 if (t == null) 35 return null; 36 37 t.termText = t.termText.toLowerCase(); 38 39 return t; 40 } 41 } 42 | Popular Tags |