org.apache.solr.analysis
Class PhoneticFilter

java.lang.Object
  extended by org.apache.lucene.util.AttributeSource
      extended by org.apache.lucene.analysis.TokenStream
          extended by org.apache.lucene.analysis.TokenFilter
              extended by org.apache.solr.analysis.PhoneticFilter

public class PhoneticFilter
extends TokenFilter

Create tokens for phonetic matches. See: http://jakarta.apache.org/commons/codec/api-release/org/apache/commons/codec/language/package-summary.html

Version:
$Id: PhoneticFilter.java 804726 2009-08-16 17:28:58Z yonik $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
AttributeSource.AttributeFactory, AttributeSource.State
 
Field Summary
protected  org.apache.commons.codec.Encoder encoder
           
protected  boolean inject
           
protected  String name
           
protected  AttributeSource.State save
           
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
PhoneticFilter(TokenStream in, org.apache.commons.codec.Encoder encoder, String name, boolean inject)
           
 
Method Summary
 boolean incrementToken()
           
 void reset()
           
 
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close, end
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
getOnlyUseNewAPI, next, next, setOnlyUseNewAPI
 
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

inject

protected boolean inject

encoder

protected org.apache.commons.codec.Encoder encoder

name

protected String name

save

protected AttributeSource.State save
Constructor Detail

PhoneticFilter

public PhoneticFilter(TokenStream in,
                      org.apache.commons.codec.Encoder encoder,
                      String name,
                      boolean inject)
Method Detail

incrementToken

public boolean incrementToken()
                       throws IOException
Overrides:
incrementToken in class TokenStream
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class TokenFilter
Throws:
IOException


Copyright © 2011 Apache Software Foundation. All Rights Reserved.