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
- All Implemented Interfaces:
- Closeable
public final 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 940806 2010-05-04 11:18:46Z uschindler $
Methods inherited from class org.apache.lucene.util.AttributeSource |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, 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
- Specified by:
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.