public class ElisionFilterFactory extends TokenFilterFactory implements ResourceLoaderAware, MultiTermAwareComponent
ElisionFilter
.
<fieldType name="text_elsn" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.ElisionFilterFactory" articles="stopwordarticles.txt" ignoreCase="true"/> </analyzer> </fieldType>
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
ElisionFilterFactory(Map<String,String> args)
Creates a new ElisionFilterFactory
|
Modifier and Type | Method and Description |
---|---|
ElisionFilter |
create(TokenStream input)
Transform the specified input TokenStream
|
AbstractAnalysisFactory |
getMultiTermComponent()
Returns an analysis component to handle analysis if multi-term queries.
|
void |
inform(ResourceLoader loader)
Initializes this component with the provided ResourceLoader
(used for loading classes, files, etc).
|
availableTokenFilters, forName, lookupClass, reloadTokenFilters
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
public void inform(ResourceLoader loader) throws IOException
ResourceLoaderAware
inform
in interface ResourceLoaderAware
IOException
public ElisionFilter create(TokenStream input)
TokenFilterFactory
create
in class TokenFilterFactory
public AbstractAnalysisFactory getMultiTermComponent()
MultiTermAwareComponent
getMultiTermComponent
in interface MultiTermAwareComponent
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.