Class SnowballPorterFilterFactory
Factory for SnowballFilter, with configurable language
Note: Use of the "Lovins" stemmer is not recommended, as it is implemented with reflection.
<fieldType name="text_snowballstem" class="solr.TextField" positionIncrementGap="100">
  <analyzer>
    <tokenizer class="solr.StandardTokenizerFactory"/>
    <filter class="solr.LowerCaseFilterFactory"/>
    <filter class="solr.SnowballPorterFilterFactory" protected="protectedkeyword.txt" language="English"/>
  </analyzer>
</fieldType>
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Snowball
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class SnowballPorterFilterFactory : TokenFilterFactory, IResourceLoaderAware
  Constructors
SnowballPorterFilterFactory(IDictionary<string, string>)
Creates a new SnowballPorterFilterFactory
Declaration
public SnowballPorterFilterFactory(IDictionary<string, string> args)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IDictionary<string, string> | args | 
Fields
PROTECTED_TOKENS
Factory for SnowballFilter, with configurable language
Note: Use of the "Lovins" stemmer is not recommended, as it is implemented with reflection.
<fieldType name="text_snowballstem" class="solr.TextField" positionIncrementGap="100">
  <analyzer>
    <tokenizer class="solr.StandardTokenizerFactory"/>
    <filter class="solr.LowerCaseFilterFactory"/>
    <filter class="solr.SnowballPorterFilterFactory" protected="protectedkeyword.txt" language="English"/>
  </analyzer>
</fieldType>
Declaration
public const string PROTECTED_TOKENS = "protected"
  Field Value
| Type | Description | 
|---|---|
| string | 
Methods
Create(TokenStream)
Transform the specified input Lucene.Net.Analysis.TokenStream
Declaration
public override TokenStream Create(TokenStream input)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TokenStream | input | 
Returns
| Type | Description | 
|---|---|
| TokenStream | 
Overrides
Inform(IResourceLoader)
Initializes this component with the provided IResourceLoader (used for loading types, embedded resources, files, etc).
Declaration
public virtual void Inform(IResourceLoader loader)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IResourceLoader | loader |