Show / Hide Table of Contents

    Class StandardSyntaxParser

    Parser for the standard Lucene syntax

    Inheritance
    System.Object
    StandardSyntaxParser
    Implements
    ISyntaxParser
    Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Parser
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class StandardSyntaxParser : object, ISyntaxParser

    Constructors

    | Improve this Doc View Source

    StandardSyntaxParser()

    Declaration
    public StandardSyntaxParser()
    | Improve this Doc View Source

    StandardSyntaxParser(ICharStream)

    Constructor with user supplied ICharStream.

    Declaration
    public StandardSyntaxParser(ICharStream stream)
    Parameters
    Type Name Description
    ICharStream stream
    | Improve this Doc View Source

    StandardSyntaxParser(StandardSyntaxParserTokenManager)

    Constructor with generated Token Manager.

    Declaration
    public StandardSyntaxParser(StandardSyntaxParserTokenManager tm)
    Parameters
    Type Name Description
    StandardSyntaxParserTokenManager tm

    Properties

    | Improve this Doc View Source

    Jj_nt

    Next token.

    Declaration
    public Token Jj_nt { get; set; }
    Property Value
    Type Description
    Token
    | Improve this Doc View Source

    Token

    Current token.

    Declaration
    public Token Token { get; set; }
    Property Value
    Type Description
    Token
    | Improve this Doc View Source

    TokenSource

    Generated Token Manager.

    Declaration
    public StandardSyntaxParserTokenManager TokenSource { get; set; }
    Property Value
    Type Description
    StandardSyntaxParserTokenManager

    Methods

    | Improve this Doc View Source

    Clause(String)

    Declaration
    public IQueryNode Clause(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    IQueryNode
    | Improve this Doc View Source

    ConjQuery(String)

    Declaration
    public IQueryNode ConjQuery(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    IQueryNode
    | Improve this Doc View Source

    Conjunction()

    Declaration
    public int Conjunction()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Disable_tracing()

    Disable tracing.

    Declaration
    public void Disable_tracing()
    | Improve this Doc View Source

    DisjQuery(String)

    Declaration
    public IQueryNode DisjQuery(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    IQueryNode
    | Improve this Doc View Source

    Enable_tracing()

    Enable tracing.

    Declaration
    public void Enable_tracing()
    | Improve this Doc View Source

    GenerateParseException()

    Generate ParseException.

    Declaration
    public virtual ParseException GenerateParseException()
    Returns
    Type Description
    ParseException
    | Improve this Doc View Source

    GetNextToken()

    Get the next Token.

    Declaration
    public Token GetNextToken()
    Returns
    Type Description
    Token
    | Improve this Doc View Source

    GetToken(Int32)

    Get the specific Token.

    Declaration
    public Token GetToken(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    Token
    | Improve this Doc View Source

    ModClause(String)

    Declaration
    public IQueryNode ModClause(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    IQueryNode
    | Improve this Doc View Source

    Modifiers()

    Declaration
    public Modifier Modifiers()
    Returns
    Type Description
    Modifier
    | Improve this Doc View Source

    Parse(String, String)

    Parses a query string, returning a IQueryNode.

    Declaration
    public IQueryNode Parse(string query, string field)
    Parameters
    Type Name Description
    System.String query

    the query string to be parsed.

    System.String field
    Returns
    Type Description
    IQueryNode
    Exceptions
    Type Condition
    ParseException

    if the parsing fails

    | Improve this Doc View Source

    Query(String)

    Declaration
    public IQueryNode Query(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    IQueryNode
    | Improve this Doc View Source

    ReInit(ICharStream)

    Reinitialize.

    Declaration
    public void ReInit(ICharStream stream)
    Parameters
    Type Name Description
    ICharStream stream
    | Improve this Doc View Source

    ReInit(StandardSyntaxParserTokenManager)

    Reinitialize.

    Declaration
    public void ReInit(StandardSyntaxParserTokenManager tm)
    Parameters
    Type Name Description
    StandardSyntaxParserTokenManager tm
    | Improve this Doc View Source

    Term(String)

    Declaration
    public IQueryNode Term(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    IQueryNode
    | Improve this Doc View Source

    TopLevelQuery(String)

    Declaration
    public IQueryNode TopLevelQuery(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    IQueryNode

    Implements

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