C# Class org.apache.lucene.analysis.charfilter.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: paulirwin/lucene.net 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