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

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    Inheritance
    System.Object
    NormalizeCharMap.Builder
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Analysis.CharFilters
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public class Builder

    Methods

    | Improve this Doc View Source

    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
    System.String match

    input String to be replaced

    System.String replacement

    output String

    Exceptions
    Type Condition
    System.ArgumentException

    if

    match
    is the empty string, or was

    already previously added

    | Improve this Doc View Source

    Build()

    Builds the NormalizeCharMap; call this once you are done calling Add(String, String).

    Declaration
    public virtual NormalizeCharMap Build()
    Returns
    Type Description
    NormalizeCharMap
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 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.