Module: google.appengine.api.search.query_parser

Wrapper for QueryParser.

Classes

class QueryException: An error occurred while parsing the query input string.

class QueryLexerWithErrors: An overridden Lexer that raises exceptions.

class QueryParserWithErrors: An overridden Parser that raises exceptions.

class QueryTreeException: An error occurred while analyzing the parse tree.

Functions

ConvertNodes(...): Converts nodes of type from_type to nodes of type to_type.

CreateParser(...): Creates a Query Parser.

CreateQueryNode(...)

GetPhraseQueryNodeText(...): Returns the text from a query node.

GetQueryNodeText(...): Returns the text from the node, handling that it could be unicode.

GetQueryNodeTextUnicode(...): Returns the unicode text from node.

IsPhrase(...): Return true if node is the root of a text phrase.

Parse(...): Parses a query and returns an ANTLR tree.

ParseAndSimplify(...): Parses a query and performs all necessary transformations on the tree.

RemoveSurroundingQuotes(...): Removes outer quotation marks, if present.

SequenceToConjunction(...): Transform all SEQUENCE nodes into CONJUNCTION nodes.

Simplify(...): Simplifies the output of the parser.

SimplifyNode(...)

ValidateNode(...)

COMPARISON_TYPES [22, 23, 21, 20, 19, 18, 17]
QUERY_FUNCTION_NAMES

{
 'distance',
 'geopoint'
}