tangentum technologies    
 

Deutsch

   
   
 
    PhoneticAnalyzer (Phonetix)
Phonetix
v0.2

com.tangentum.phonetix.lucene
Class PhoneticAnalyzer

java.lang.Object
  |
  +--org.apache.lucene.analysis.Analyzer
        |
        +--com.tangentum.phonetix.lucene.PhoneticAnalyzer

public class PhoneticAnalyzer
extends org.apache.lucene.analysis.Analyzer

Filters StandardTokenizer with StandardFilter, LowerCaseFilter, StopFilter, and PhoneticFilter.

To use a PhoneticAnalyzer, simply build it with a PhoneticEncoder and use it to create and search indices of Lucene.

Author:
Claus Engel
See Also:
Soundex, Metaphone, DoubleMetaphone

Constructor Summary
PhoneticAnalyzer(PhoneticEncoder phoneticEncoder)
          Builds an analyzer with the given phonetic encoder.
PhoneticAnalyzer(PhoneticEncoder phoneticEncoder, java.lang.String[] stopWords)
          Builds an analyzer with the given phonetic encoder and the given stop words.
 
Method Summary
 PhoneticEncoder encoder()
          Returns the phonetic encoder.
 org.apache.lucene.analysis.TokenStream tokenStream(java.io.Reader reader)
          Constructs a StandardTokenizer filtered by a StandardFilter, a LowerCaseFilter, a StopFilter, and a PhoneticFilter.
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
tokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneticAnalyzer

public PhoneticAnalyzer(PhoneticEncoder phoneticEncoder)
Builds an analyzer with the given phonetic encoder.


PhoneticAnalyzer

public PhoneticAnalyzer(PhoneticEncoder phoneticEncoder,
                        java.lang.String[] stopWords)
Builds an analyzer with the given phonetic encoder and the given stop words.

Method Detail

encoder

public final PhoneticEncoder encoder()
Returns the phonetic encoder.


tokenStream

public org.apache.lucene.analysis.TokenStream tokenStream(java.io.Reader reader)
Constructs a StandardTokenizer filtered by a StandardFilter, a LowerCaseFilter, a StopFilter, and a PhoneticFilter.

Overrides:
tokenStream in class org.apache.lucene.analysis.Analyzer

Phonetix
v0.2

Copyright © 1996-2003 Claus Engel. All Rights Reserved.