Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class StemmerOverrideFilter.Builder

    This builder builds an Lucene.Net.Util.Fst.FST for the StemmerOverrideFilter

    Inheritance
    object
    StemmerOverrideFilter.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.Miscellaneous
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public class StemmerOverrideFilter.Builder

    Constructors

    Builder()

    Creates a new StemmerOverrideFilter.Builder with ignoreCase set to false

    Declaration
    public Builder()

    Builder(bool)

    Creates a new StemmerOverrideFilter.Builder

    Declaration
    public Builder(bool ignoreCase)
    Parameters
    Type Name Description
    bool ignoreCase

    if the input case should be ignored.

    Methods

    Add(ICharSequence, string)

    Adds an input string and it's stemmer override output to this builder.

    Declaration
    public virtual bool Add(ICharSequence input, string output)
    Parameters
    Type Name Description
    ICharSequence input

    the input char sequence

    string output

    the stemmer override output char sequence

    Returns
    Type Description
    bool

    false if the input has already been added to this builder otherwise true.

    Exceptions
    Type Condition
    ArgumentNullException

    input or output is null.

    Add(char[], string)

    Adds an input string and it's stemmer override output to this builder.

    Declaration
    public virtual bool Add(char[] input, string output)
    Parameters
    Type Name Description
    char[] input

    the input char sequence

    string output

    the stemmer override output char sequence

    Returns
    Type Description
    bool

    false if the input has already been added to this builder otherwise true.

    Exceptions
    Type Condition
    ArgumentNullException

    input or output is null.

    Add(string, string)

    Adds an input string and it's stemmer override output to this builder.

    Declaration
    public virtual bool Add(string input, string output)
    Parameters
    Type Name Description
    string input

    the input char sequence

    string output

    the stemmer override output char sequence

    Returns
    Type Description
    bool

    false if the input has already been added to this builder otherwise true.

    Exceptions
    Type Condition
    ArgumentNullException

    input or output is null.

    Build()

    Returns a StemmerOverrideFilter.StemmerOverrideMap to be used with the StemmerOverrideFilter

    Declaration
    public virtual StemmerOverrideFilter.StemmerOverrideMap Build()
    Returns
    Type Description
    StemmerOverrideFilter.StemmerOverrideMap

    a StemmerOverrideFilter.StemmerOverrideMap to be used with the StemmerOverrideFilter

    Exceptions
    Type Condition
    IOException

    if an IOException occurs;

    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.