Class Zend_Search_Lucene_Search_QueryLexer

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

Located in /Zend/Search/Lucene/Search/QueryLexer.php (line 43)

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)
Methods
addLexeme (line 426)

Add lexeme

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

Extend lexeme by one char

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

Add lexeme modifier

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

Add number lexeme

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

Add query syntax lexeme

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

Add quoted lexeme

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

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

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

  • access: public
void lexModifierErrException ()
quoteWithinLexemeErrException (line 488)
  • access: public
void quoteWithinLexemeErrException ()
Constructor __construct (line 104)
  • access: public
Zend_Search_Lucene_Search_QueryLexer __construct ()

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

This method is used to tokenize query string into lexemes

  • access: public
  • throws: Zend_Search_Lucene_Search_QueryParserException
array tokenize (string $inputString)
  • string $inputString
wrongNumberErrException (line 492)
  • 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 64)
IN_CHAR = 7 (line 65)
IN_DECIMAL_POINT = 5 (line 63)
IN_ESCAPE_CHAR = 3 (line 61)
IN_LEXEME_MODIFIER = 2 (line 60)
IN_MUTABLE_CHAR = 8 (line 66)
IN_QUOTE = 4 (line 62)
IN_SYNT_CHAR = 1 (line 59)
IN_WHITE_SPACE = 0 (line 58)

Input symbols

QUERY_ASCIIDIGITS_CHARS = '0123456789' (line 73)
QUERY_DOUBLECHARLEXEME_CHARS = '|&' (line 71)
QUERY_LEXEMEMODIFIER_CHARS = '~^' (line 72)
QUERY_MUTABLE_CHARS = '+-' (line 70)
QUERY_SYNT_CHARS = ':()[]{}!|&' (line 69)
QUERY_WHITE_SPACE_CHARS = " \n\r\t" (line 68)
ST_ERROR = 9 (line 55)
ST_ESCAPED_CHAR = 4 (line 50)
ST_ESCAPED_QCHAR = 5 (line 51)
ST_LEXEME = 2 (line 48)
ST_LEXEME_MODIFIER = 6 (line 52)
ST_MANTISSA = 8 (line 54)
ST_NUMBER = 7 (line 53)
ST_QUOTED_LEXEME = 3 (line 49)
ST_SYNT_LEXEME = 1 (line 47)
ST_WHITE_SPACE = 0 (line 46)

State Machine states

Documentation generated on Thu, 18 Jan 2007 09:58:11 -0800 by phpDocumentor 1.3.1