C# Class Lucene.Net.Analysis.CharFilters.NormalizeCharMap.Builder

Builds an NormalizeCharMap.

Call add() until you have added all the mappings, then call build() to get a NormalizeCharMap @lucene.experimental

Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Add ( string match, string replacement ) : void

Records a replacement to be applied to the input stream. Whenever singleMatch occurs in the input, it will be replaced with replacement.

Build ( ) : NormalizeCharMap

Builds the NormalizeCharMap; call this once you are done calling #add.

Method Details

Add() public method

Records a replacement to be applied to the input stream. Whenever singleMatch occurs in the input, it will be replaced with replacement.
if /// match is the empty string, or was /// already previously added
public Add ( string match, string replacement ) : void
match string input String to be replaced
replacement string output String
return void

Build() public method

Builds the NormalizeCharMap; call this once you are done calling #add.
public Build ( ) : NormalizeCharMap
return NormalizeCharMap