public class ManagedStopFilterFactory extends BaseManagedTokenFilterFactory
handle
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
ManagedStopFilterFactory(Map<String,String> args)
Initialize the managed "handle"
|
Modifier and Type | Method and Description |
---|---|
TokenStream |
create(TokenStream input)
Returns a StopFilter based on our managed stop word set.
|
protected Class<? extends ManagedResource> |
getManagedResourceImplClass()
Returns the implementation class for managing stop words.
|
String |
getResourceId()
This analysis component knows the most logical "path"
for which to manage stop words from.
|
void |
onManagedResourceInitialized(NamedList<?> args,
ManagedResource res)
Callback invoked by the
ManagedResource instance to trigger this
class to create the CharArraySet used to create the StopFilter using the
wordset managed by ManagedWordSetResource . |
inform
availableTokenFilters, forName, lookupClass, normalize, 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, splitAt, splitFileNames
public String getResourceId()
getResourceId
in class BaseManagedTokenFilterFactory
protected Class<? extends ManagedResource> getManagedResourceImplClass()
getManagedResourceImplClass
in class BaseManagedTokenFilterFactory
public void onManagedResourceInitialized(NamedList<?> args, ManagedResource res) throws SolrException
ManagedResource
instance to trigger this
class to create the CharArraySet used to create the StopFilter using the
wordset managed by ManagedWordSetResource
. Keep in mind that
a schema.xml may reuse the same ManagedStopFilterFactory
many
times for different field types; behind the scenes all instances of this
class/handle combination share the same managed data, hence the need for
a listener/callback scheme.SolrException
public TokenStream create(TokenStream input)
create
in class TokenFilterFactory
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.