Show / Hide Table of Contents

    Class SynonymMap.Parser

    Abstraction for parsing synonym files.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    SynonymMap.Builder
    SynonymMap.Parser
    SolrSynonymParser
    WordnetSynonymParser
    Inherited Members
    SynonymMap.Builder.Join(String[], CharsRef)
    SynonymMap.Builder.Add(CharsRef, CharsRef, Boolean)
    SynonymMap.Builder.Build()
    Namespace: Lucene.Net.Analysis.Synonym
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public abstract class Parser : SynonymMap.Builder

    Constructors

    | Improve this Doc View Source

    Parser(Boolean, Analyzer)

    Declaration
    public Parser(bool dedup, Analyzer analyzer)
    Parameters
    Type Name Description
    System.Boolean dedup
    Analyzer analyzer

    Methods

    | Improve this Doc View Source

    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
    System.String text
    CharsRef reuse
    Returns
    Type Description
    CharsRef
    | Improve this Doc View Source

    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

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)