1 11 package org.eclipse.help.internal.search; 12 import java.io.*; 13 14 import org.apache.lucene.analysis.*; 15 18 public class Analyzer_en extends Analyzer { 19 22 public Analyzer_en() { 23 super(); 24 } 25 29 public final TokenStream tokenStream(String fieldName, Reader reader) { 30 return new PorterStemFilter(new StopFilter(new LowerCaseAndDigitsTokenizer(reader), STOP_WORDS)); 31 } 32 36 private final static String [] STOP_WORDS = {"a", "and", "are", "as", "at", "be", "but", "by", "in", "into", "is", "it", "no", "not", "of", "on", "or", "s", "such", "t", "that", "the", "their", "then", "there", "these", "they", "to", "was", "will", "with"}; 68 } 69 | Popular Tags |