org.apache.lucene.analysis.miscellaneous
Class KeywordRepeatFilterFactory

java.lang.Object
  extended by org.apache.lucene.analysis.util.AbstractAnalysisFactory
      extended by org.apache.lucene.analysis.util.TokenFilterFactory
          extended by org.apache.lucene.analysis.miscellaneous.KeywordRepeatFilterFactory

public final class KeywordRepeatFilterFactory
extends TokenFilterFactory

Factory for KeywordRepeatFilter. Since KeywordRepeatFilter emits two tokens for every input token, and any tokens that aren't transformed later in the analysis chain will be in the document twice. Therefore, consider adding RemoveDuplicatesTokenFilterFactory later in the analysis chain.


Field Summary
 
Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
 
Constructor Summary
KeywordRepeatFilterFactory(Map<String,String> args)
          Creates a new KeywordRepeatFilterFactory
 
Method Summary
 TokenStream create(TokenStream input)
          Transform the specified input TokenStream
 
Methods inherited from class org.apache.lucene.analysis.util.TokenFilterFactory
availableTokenFilters, forName, lookupClass, reloadTokenFilters
 
Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
assureMatchVersion, get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitFileNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeywordRepeatFilterFactory

public KeywordRepeatFilterFactory(Map<String,String> args)
Creates a new KeywordRepeatFilterFactory

Method Detail

create

public TokenStream create(TokenStream input)
Description copied from class: TokenFilterFactory
Transform the specified input TokenStream

Specified by:
create in class TokenFilterFactory


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.