Class LuceneSyntaxLexer

Description

Located in /lib/core/Search/Common/Parsers/LuceneSyntaxLexer.php (line 6)

Zend_Search_Lucene_FSM
   |
   --LuceneSyntaxLexer
Class Constant Summary
Method Summary
void addLexeme ()
void addLexemeChar ()
void addNumberLexeme ()
void addQuotedLexeme ()
LuceneSyntaxLexer __construct ()
array tokenize (string $inputString, string $encoding)
Methods
addLexeme (line 406)

Add lexeme

  • access: public
void addLexeme ()
addLexemeChar (line 444)

Extend lexeme by one char

  • access: public
void addLexemeChar ()
addLexemeModifier (line 394)

Add lexeme modifier

  • access: public
void addLexemeModifier ()
addNumberLexeme (line 432)

Add number lexeme

  • access: public
void addNumberLexeme ()
addQuerySyntaxLexeme (line 352)

Add query syntax lexeme

  • throws: Zend_Search_Lucene_Search_QueryParserException
  • access: public
void addQuerySyntaxLexeme ()
addQuotedLexeme (line 419)

Add quoted lexeme

  • access: public
void addQuotedLexeme ()
lexModifierErrException (line 464)

*******************************************************************

Syntax errors actions *******************************************************************

  • access: public
void lexModifierErrException ()
quoteWithinLexemeErrException (line 469)
  • access: public
void quoteWithinLexemeErrException ()
Constructor __construct (line 67)
  • access: public
LuceneSyntaxLexer __construct ()
tokenize (line 302)

This method is used to tokenize query string into lexemes

  • throws: Zend_Search_Lucene_Search_QueryParserException
  • access: public
array tokenize (string $inputString, string $encoding)
  • string $inputString
  • string $encoding
wrongNumberErrException (line 474)
  • access: public
void wrongNumberErrException ()
Class Constants
IN_ASCII_DIGIT = 6 (line 27)
IN_CHAR = 7 (line 28)
IN_DECIMAL_POINT = 5 (line 26)
IN_ESCAPE_CHAR = 3 (line 24)
IN_LEXEME_MODIFIER = 2 (line 23)
IN_MUTABLE_CHAR = 8 (line 29)
IN_QUOTE = 4 (line 25)
IN_SYNT_CHAR = 1 (line 22)
IN_WHITE_SPACE = 0 (line 21)

Input symbols

QUERY_ASCIIDIGITS_CHARS = '0123456789' (line 36)
QUERY_DOUBLECHARLEXEME_CHARS = '|&' (line 34)
QUERY_LEXEMEMODIFIER_CHARS = '~^' (line 35)
QUERY_MUTABLE_CHARS = '+-' (line 33)
QUERY_SYNT_CHARS = ':()[]{}!|&' (line 32)
QUERY_WHITE_SPACE_CHARS = " \n\r\t" (line 31)
ST_ERROR = 9 (line 18)
ST_ESCAPED_CHAR = 4 (line 13)
ST_ESCAPED_QCHAR = 5 (line 14)
ST_LEXEME = 2 (line 11)
ST_LEXEME_MODIFIER = 6 (line 15)
ST_MANTISSA = 8 (line 17)
ST_NUMBER = 7 (line 16)
ST_QUOTED_LEXEME = 3 (line 12)
ST_SYNT_LEXEME = 1 (line 10)
ST_WHITE_SPACE = 0 (line 9)

State Machine states

Documentation generated on Sun, 06 Mar 2011 00:24:26 -0500 by phpDocumentor 1.4.3