org.compass.core.lucene.engine.analyzer.synonym
Class SynonymFilter

java.lang.Object
  extended by org.apache.lucene.analysis.TokenStream
      extended by org.apache.lucene.analysis.TokenFilter
          extended by org.compass.core.lucene.engine.analyzer.synonym.SynonymFilter

public class SynonymFilter
extends TokenFilter

A synonym provider which uses SynonymLookupProvider to provide synonyms for a given value.

Author:
kimchy

Field Summary
static String TOKEN_TYPE_SYNONYM
           
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Constructor Summary
SynonymFilter(TokenStream in, SynonymLookupProvider synonymLookupProvider)
           
 
Method Summary
 Token next()
           
 
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close, reset
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOKEN_TYPE_SYNONYM

public static final String TOKEN_TYPE_SYNONYM
See Also:
Constant Field Values
Constructor Detail

SynonymFilter

public SynonymFilter(TokenStream in,
                     SynonymLookupProvider synonymLookupProvider)
Method Detail

next

public Token next()
           throws IOException
Overrides:
next in class TokenStream
Throws:
IOException


Copyright (c) 2004-2008 The Compass Project.