lucene-multilingual

Multilingual enhancements for the Lucene text search library
git clone https://code.djc.id.au/git/lucene-multilingual/

src/main/java/au/com/miskinhill/search/analysis/Analyzer.java (479B) - raw

      1 package au.com.miskinhill.search.analysis;
      2 
      3 import java.io.Reader;
      4 
      5 import org.apache.lucene.analysis.TokenStream;
      6 import org.apache.lucene.util.AttributeSource;
      7 
      8 /**
      9  * Same as {@link org.apache.lucene.analysis.Analyzer Lucene's Analyzer} but
     10  * with a saner API.
     11  */
     12 public interface Analyzer {
     13     
     14     TokenStream tokenizer(Reader input);
     15     
     16     TokenStream tokenizer(AttributeSource attributeSource, Reader input);
     17     
     18     TokenStream applyFilters(TokenStream input);
     19 
     20 }