Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Interface IEscapeQuerySyntax

    A parser needs to implement IEscapeQuerySyntax to allow the IQueryNode to escape the queries, when the ToQueryString method is called.

    Namespace: Lucene.Net.QueryParsers.Flexible.Core.Parser
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public interface IEscapeQuerySyntax

    Methods

    Escape(ICharSequence, CultureInfo, EscapeQuerySyntaxType)

    A parser needs to implement IEscapeQuerySyntax to allow the IQueryNode to escape the queries, when the ToQueryString method is called.

    Declaration
    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)

    A parser needs to implement IEscapeQuerySyntax to allow the IQueryNode to escape the queries, when the ToQueryString method is called.

    Declaration
    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

    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.