Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class EscapeQuerySyntax

    Implementation of IEscapeQuerySyntax for the standard lucene syntax.

    Inheritance
    object
    EscapeQuerySyntax
    Implements
    IEscapeQuerySyntax
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Parser
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class EscapeQuerySyntax : IEscapeQuerySyntax

    Methods

    DiscardEscapeChar(string)

    Returns a string where the escape char has been removed, or kept only once if there was a double escape.

    Supports escaped unicode characters, e. g. translates A to A.
    Declaration
    public static UnescapedCharSequence DiscardEscapeChar(string input)
    Parameters
    Type Name Description
    string input
    Returns
    Type Description
    UnescapedCharSequence

    Escape(ICharSequence, CultureInfo, EscapeQuerySyntaxType)

    Implementation of IEscapeQuerySyntax for the standard lucene syntax.

    Declaration
    public virtual ICharSequence Escape(ICharSequence text, CultureInfo locale, EscapeQuerySyntaxType type)
    Parameters
    Type Name Description
    ICharSequence text

    text to be escaped

    CultureInfo locale

    locale for the current query

    EscapeQuerySyntaxType type

    select the type of escape operation to use

    Returns
    Type Description
    ICharSequence

    escaped text

    Escape(string, CultureInfo, EscapeQuerySyntaxType)

    Implementation of IEscapeQuerySyntax for the standard lucene syntax.

    Declaration
    public virtual string Escape(string text, CultureInfo locale, EscapeQuerySyntaxType type)
    Parameters
    Type Name Description
    string text

    text to be escaped

    CultureInfo locale

    locale for the current query

    EscapeQuerySyntaxType type

    select the type of escape operation to use

    Returns
    Type Description
    string

    escaped text

    Implements

    IEscapeQuerySyntax
    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.