Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    NormalizeCharMap.Builder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    match
    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
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.