org.apache.solr.analysis
Class PhoneticFilter
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
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 $
Methods inherited from class org.apache.lucene.util.AttributeSource |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString |
inject
protected boolean inject
encoder
protected org.apache.commons.codec.Encoder encoder
name
protected String name
save
protected AttributeSource.State save
PhoneticFilter
public PhoneticFilter(TokenStream in,
org.apache.commons.codec.Encoder encoder,
String name,
boolean inject)
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 © 2010 Apache Software Foundation. All Rights Reserved.