Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SynonymMap

    A map of synonyms, keys and values are phrases.

    Note

    This API is experimental and might change in incompatible ways in the next release.

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

    Constructors

    SynonymMap(FST<BytesRef>, BytesRefHash, int)

    A map of synonyms, keys and values are phrases.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    public SynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext)
    Parameters
    Type Name Description
    FST<BytesRef> fst
    BytesRefHash words
    int maxHorizontalContext

    Fields

    WORD_SEPARATOR

    for multiword support, you must separate words with this separator

    Declaration
    public const char WORD_SEPARATOR = '\0'
    Field Value
    Type Description
    char

    Properties

    Fst

    map<input word, list<ord>>

    Declaration
    public FST<BytesRef> Fst { get; }
    Property Value
    Type Description
    FST<BytesRef>

    MaxHorizontalContext

    maxHorizontalContext: maximum context we need on the tokenstream

    Declaration
    public int MaxHorizontalContext { get; }
    Property Value
    Type Description
    int

    Words

    map<ord, outputword>

    Declaration
    public BytesRefHash Words { get; }
    Property Value
    Type Description
    BytesRefHash
    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.