org.apache.solr.analysis
Class SynonymFilter
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.apache.solr.analysis.SynonymFilter
public class SynonymFilter
- extends TokenFilter
SynonymFilter handles multi-token synonyms with variable position increment offsets.
The matched tokens from the input stream may be optionally passed through (includeOrig=true)
or discarded. If the original tokens are included, the position increments may be modified
to retain absolute positions after merging with the synonym tokenstream.
Generated synonyms will start at the same position as the first matched source token.
- Version:
- $Id: SynonymFilter.java 513870 2007-03-02 17:58:48Z otis $
- Author:
- yonik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynonymFilter
public SynonymFilter(TokenStream in,
SynonymMap map,
boolean ignoreCase)
next
public Token next()
throws IOException
- Overrides:
next
in class TokenStream
- Throws:
IOException
Copyright © 2006 - 2009 The Apache Software Foundation