Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SynonymMap.Parser

    Abstraction for parsing synonym files.

    Note

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

    Inheritance
    object
    SynonymMap.Builder
    SynonymMap.Parser
    SolrSynonymParser
    WordnetSynonymParser
    Inherited Members
    SynonymMap.Builder.Join(string[], CharsRef)
    SynonymMap.Builder.Add(CharsRef, CharsRef, bool)
    SynonymMap.Builder.Build()
    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 abstract class SynonymMap.Parser : SynonymMap.Builder

    Constructors

    Parser(bool, Analyzer)

    Abstraction for parsing synonym files.

    Note

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

    Declaration
    protected Parser(bool dedup, Analyzer analyzer)
    Parameters
    Type Name Description
    bool dedup
    Analyzer analyzer

    Methods

    Analyze(string, CharsRef)

    Sugar: analyzes the text with the analyzer and separates by WORD_SEPARATOR. reuse and its chars must not be null.

    Declaration
    public virtual CharsRef Analyze(string text, CharsRef reuse)
    Parameters
    Type Name Description
    string text
    CharsRef reuse
    Returns
    Type Description
    CharsRef

    Parse(TextReader)

    Parse the given input, adding synonyms to the inherited SynonymMap.Builder.

    Declaration
    public abstract void Parse(TextReader @in)
    Parameters
    Type Name Description
    TextReader in

    The input to parse

    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.