Package org.apache.lucene.analysis.ja
Class JapanesePartOfSpeechStopFilterFactory
- java.lang.Object
-
- org.apache.lucene.analysis.AbstractAnalysisFactory
-
- org.apache.lucene.analysis.TokenFilterFactory
-
- org.apache.lucene.analysis.ja.JapanesePartOfSpeechStopFilterFactory
-
- All Implemented Interfaces:
ResourceLoaderAware
public class JapanesePartOfSpeechStopFilterFactory extends TokenFilterFactory implements ResourceLoaderAware
Factory forJapanesePartOfSpeechStopFilter
.<fieldType name="text_ja" class="solr.TextField"> <analyzer> <tokenizer class="solr.JapaneseTokenizerFactory"/> <filter class="solr.JapanesePartOfSpeechStopFilterFactory" tags="stopTags.txt"/> </analyzer> </fieldType>
- Since:
- 3.6.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
private java.lang.String
stopTagFiles
private java.util.Set<java.lang.String>
stopTags
-
Fields inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
-
-
Constructor Summary
Constructors Constructor Description JapanesePartOfSpeechStopFilterFactory()
Default ctor for compatibility with SPIJapanesePartOfSpeechStopFilterFactory(java.util.Map<java.lang.String,java.lang.String> args)
Creates a new JapanesePartOfSpeechStopFilterFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenStream
create(TokenStream stream)
Transform the specified input TokenStreamvoid
inform(ResourceLoader loader)
Initializes this component with the provided ResourceLoader (used for loading classes, files, etc).-
Methods inherited from class org.apache.lucene.analysis.TokenFilterFactory
availableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFilters
-
Methods inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory
defaultCtorException, 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, splitAt, splitFileNames
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
stopTagFiles
private final java.lang.String stopTagFiles
-
stopTags
private java.util.Set<java.lang.String> stopTags
-
-
Constructor Detail
-
JapanesePartOfSpeechStopFilterFactory
public JapanesePartOfSpeechStopFilterFactory(java.util.Map<java.lang.String,java.lang.String> args)
Creates a new JapanesePartOfSpeechStopFilterFactory
-
JapanesePartOfSpeechStopFilterFactory
public JapanesePartOfSpeechStopFilterFactory()
Default ctor for compatibility with SPI
-
-
Method Detail
-
inform
public void inform(ResourceLoader loader) throws java.io.IOException
Description copied from interface:ResourceLoaderAware
Initializes this component with the provided ResourceLoader (used for loading classes, files, etc).- Specified by:
inform
in interfaceResourceLoaderAware
- Throws:
java.io.IOException
-
create
public TokenStream create(TokenStream stream)
Description copied from class:TokenFilterFactory
Transform the specified input TokenStream- Specified by:
create
in classTokenFilterFactory
-
-