Class NormalizeCharMap.Builder
Builds an NormalizeCharMap.
Call add() until you have added all the mappings, then call build() to get a NormalizeCharMap
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Analysis.CharFilters
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class NormalizeCharMap.Builder
Methods
Add(string, string)
Records a replacement to be applied to the input stream. Whenever
singleMatch
occurs in
the input, it will be replaced with
replacement
.
Declaration
public virtual void Add(string match, string replacement)
Parameters
Type | Name | Description |
---|---|---|
string | match | input String to be replaced |
string | replacement | output String |
Exceptions
Type | Condition |
---|---|
ArgumentException | if is the empty string, or was
already previously added |
Build()
Builds the NormalizeCharMap; call this once you are done calling Add(string, string).
Declaration
public virtual NormalizeCharMap Build()
Returns
Type | Description |
---|---|
NormalizeCharMap |