public class ManagedStopFilterFactory extends BaseManagedTokenFilterFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
SPI name
|
handleLUCENE_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. |
informavailableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFiltersget, 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, splitFileNamespublic static final String NAME
public String getResourceId()
getResourceId in class BaseManagedTokenFilterFactoryprotected Class<? extends ManagedResource> getManagedResourceImplClass()
getManagedResourceImplClass in class BaseManagedTokenFilterFactorypublic 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.SolrExceptionpublic TokenStream create(TokenStream input)
create in class TokenFilterFactoryCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.