1 package com.dotmarketing.lucene; 2 3 import java.io.File ; 4 import java.io.IOException ; 5 import java.io.Reader ; 6 import java.util.Set ; 7 8 import org.apache.lucene.analysis.Analyzer; 9 import org.apache.lucene.analysis.LowerCaseFilter; 10 import org.apache.lucene.analysis.TokenStream; 11 import org.apache.lucene.analysis.WhitespaceTokenizer; 12 13 public class DotAnalyzer extends Analyzer { 14 15 public static final String STOP_WORDS[]; 16 17 static { 18 STOP_WORDS = new String [0]; 19 } 20 21 public DotAnalyzer() { 22 this(STOP_WORDS); 23 } 24 25 public DotAnalyzer(Set stopWords) { 26 } 27 28 public DotAnalyzer(String stopWords[]) { 29 } 30 31 public DotAnalyzer(File stopwords) throws IOException { 32 } 33 34 public DotAnalyzer(Reader stopwords) throws IOException { 35 } 36 37 public TokenStream tokenStream(String fieldName, Reader reader) { 38 TokenStream result = new WhitespaceTokenizer(reader); 39 result = new DotFilter(result); 40 return result; 42 } 43 } | Popular Tags |