Show / Hide Table of Contents

    Namespace Lucene.Net.QueryParsers.Flexible.Standard.Parser

    Lucene Query Parser.

    Lucene Query Parser

    The package org.apache.lucene.queryparser.flexible.standard.parser contains the query parser.

    This text parser only performs the syntax validation and creates an QueryNode tree from a query string.

    Classes

    EscapeQuerySyntax

    Implementation of IEscapeQuerySyntax for the standard lucene syntax.

    FastCharStream

    An efficient implementation of JavaCC's ICharStream interface.

    Note that this does not do line-number counting, but instead keeps track of the character position of the token in the input, as required by Lucene's Token API.

    LexicalToken

    ParseException

    This exception is thrown when parse errors are encountered. You can explicitly create objects of this exception type by calling the method generateParseException in the generated parser.

    You can modify this class to customize your error reporting mechanisms so long as you retain the public fields.

    RegexpToken

    StandardSyntaxParser

    Parser for the standard Lucene syntax

    StandardSyntaxParserConstants

    Token literal values and constants.

    StandardSyntaxParserTokenManager

    Token Manager.

    Token

    Describes the input token stream.

    TokenMgrError

    Token Manager Error.

    Interfaces

    ICharStream

    This interface describes a character stream that maintains line and column number positions of the characters. It also has the capability to backup the stream to some extent. An implementation of this interface is used in the TokenManager implementation generated by JavaCCParser.

    All the methods except BackUp(Int32) can be implemented in any fashion. BackUp(Int32) needs to be implemented correctly for the correct operation of the lexer. Rest of the methods are all used to get information like line number, column number and the string that constitutes a token and are not used by the lexer. Hence their implementation won't affect the generated lexer's operation.

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