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 472574 2006-11-08 18:25:52Z yonik $
- 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
- Specified by:
next
in class TokenStream
- Throws:
IOException
Copyright © 2006 - 2006 The Apache Software Foundation