Class StemmerOverrideFilter.Builder
This builder builds an Lucene.Net.Util.Fst.FST for the StemmerOverrideFilter
Inherited Members
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class StemmerOverrideFilter.Builder
Constructors
Builder()
Creates a new StemmerOverrideFilter.Builder with ignoreCase set to false
Declaration
public Builder()
Builder(bool)
Creates a new StemmerOverrideFilter.Builder
Declaration
public Builder(bool ignoreCase)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | ignoreCase | if the input case should be ignored. |
Methods
Add(ICharSequence, string)
Adds an input string and it's stemmer override output to this builder.
Declaration
public virtual bool Add(ICharSequence input, string output)
Parameters
| Type | Name | Description |
|---|---|---|
| ICharSequence | input | the input char sequence |
| string | output | the stemmer override output char sequence |
Returns
| Type | Description |
|---|---|
| bool |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Add(char[], string)
Adds an input string and it's stemmer override output to this builder.
Declaration
public virtual bool Add(char[] input, string output)
Parameters
| Type | Name | Description |
|---|---|---|
| char[] | input | the input char sequence |
| string | output | the stemmer override output char sequence |
Returns
| Type | Description |
|---|---|
| bool |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Add(string, string)
Adds an input string and it's stemmer override output to this builder.
Declaration
public virtual bool Add(string input, string output)
Parameters
| Type | Name | Description |
|---|---|---|
| string | input | the input char sequence |
| string | output | the stemmer override output char sequence |
Returns
| Type | Description |
|---|---|
| bool |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Build()
Returns a StemmerOverrideFilter.StemmerOverrideMap to be used with the StemmerOverrideFilter
Declaration
public virtual StemmerOverrideFilter.StemmerOverrideMap Build()
Returns
| Type | Description |
|---|---|
| StemmerOverrideFilter.StemmerOverrideMap | a StemmerOverrideFilter.StemmerOverrideMap to be used with the StemmerOverrideFilter |
Exceptions
| Type | Condition |
|---|---|
| IOException | if an IOException occurs; |