Class Zend_Search_Lucene_Search_QueryLexer

Description
  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Search/Lucene/Search/QueryLexer.php (line 36)

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

Add lexeme

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

Extend lexeme by one char

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

Add lexeme modifier

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

Add number lexeme

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

Add query syntax lexeme

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

Add quoted lexeme

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

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

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

  • access: public
void lexModifierErrException ()
quoteWithinLexemeErrException (line 499)
  • access: public
void quoteWithinLexemeErrException ()
Constructor __construct (line 97)
  • access: public
Zend_Search_Lucene_Search_QueryLexer __construct ()

Redefinition of:
Zend_Search_Lucene_FSM::__construct()
Finite State machine constructor
tokenize (line 332)

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 504)
  • access: public
void wrongNumberErrException ()

Inherited Methods

Inherited From Zend_Search_Lucene_FSM

 Zend_Search_Lucene_FSM::__construct()
 Zend_Search_Lucene_FSM::addEntryAction()
 Zend_Search_Lucene_FSM::addExitAction()
 Zend_Search_Lucene_FSM::addInputAction()
 Zend_Search_Lucene_FSM::addInputSymbol()
 Zend_Search_Lucene_FSM::addInputSymbols()
 Zend_Search_Lucene_FSM::addRule()
 Zend_Search_Lucene_FSM::addRules()
 Zend_Search_Lucene_FSM::addState()
 Zend_Search_Lucene_FSM::addStates()
 Zend_Search_Lucene_FSM::addTransitionAction()
 Zend_Search_Lucene_FSM::getState()
 Zend_Search_Lucene_FSM::process()
 Zend_Search_Lucene_FSM::reset()
 Zend_Search_Lucene_FSM::setState()
Class Constants
IN_ASCII_DIGIT = 6 (line 57)
IN_CHAR = 7 (line 58)
IN_DECIMAL_POINT = 5 (line 56)
IN_ESCAPE_CHAR = 3 (line 54)
IN_LEXEME_MODIFIER = 2 (line 53)
IN_MUTABLE_CHAR = 8 (line 59)
IN_QUOTE = 4 (line 55)
IN_SYNT_CHAR = 1 (line 52)
IN_WHITE_SPACE = 0 (line 51)

Input symbols

QUERY_ASCIIDIGITS_CHARS = '0123456789' (line 66)
QUERY_DOUBLECHARLEXEME_CHARS = '|&' (line 64)
QUERY_LEXEMEMODIFIER_CHARS = '~^' (line 65)
QUERY_MUTABLE_CHARS = '+-' (line 63)
QUERY_SYNT_CHARS = ':()[]{}!|&' (line 62)
QUERY_WHITE_SPACE_CHARS = " \n\r\t" (line 61)
ST_ERROR = 9 (line 48)
ST_ESCAPED_CHAR = 4 (line 43)
ST_ESCAPED_QCHAR = 5 (line 44)
ST_LEXEME = 2 (line 41)
ST_LEXEME_MODIFIER = 6 (line 45)
ST_MANTISSA = 8 (line 47)
ST_NUMBER = 7 (line 46)
ST_QUOTED_LEXEME = 3 (line 42)
ST_SYNT_LEXEME = 1 (line 40)
ST_WHITE_SPACE = 0 (line 39)

State Machine states

Documentation generated on Mon, 21 Jun 2010 15:40:39 -0400 by phpDocumentor 1.4.3