Class Zend_Search_Lucene_Search_BooleanExpressionRecognizer

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

Located in /Search/Lucene/Search/BooleanExpressionRecognizer.php (line 34)

Zend_Search_Lucene_FSM
   |
   --Zend_Search_Lucene_Search_BooleanExpressionRecognizer
Class Constant Summary
Method Summary
 array finishExpression ()
 Zend_Search_Lucene_Search_BooleanExpressionRecognizer __construct ()
 void literalAction ()
 void processLiteral ( $literal, integer $operator)
 void processOperator (integer $operator)
Methods
emptyNotOperatorAction (line 233)

default (omitted) + NOT operator processing

  • access: public
void emptyNotOperatorAction ()
emptyOperatorAction (line 215)

default (omitted) operator processing

  • access: public
void emptyOperatorAction ()
finishExpression (line 194)

Finish an expression and return result

Result is a set of boolean query conjunctions

Each conjunction is an array of conjunction elements Each conjunction element is presented with two-elements array: array(<literal>, <is_negative>)

So, it has a structure: array( array( array(<literal>, <is_negative>), // first literal of first conjuction array(<literal>, <is_negative>), // second literal of first conjuction ... array(<literal>, <is_negative>) ), // end of first conjuction array( array(<literal>, <is_negative>), // first literal of second conjuction array(<literal>, <is_negative>), // second literal of second conjuction ... array(<literal>, <is_negative>) ), // end of second conjuction ... ) // end of structure

  • throws: Zend_Search_Lucene_Exception
  • access: public
array finishExpression ()
Constructor __construct (line 101)

Object constructor

  • access: public
Zend_Search_Lucene_Search_BooleanExpressionRecognizer __construct ()

Redefinition of:
Zend_Search_Lucene_FSM::__construct()
Finite State machine constructor
literalAction (line 270)

Literal processing

  • access: public
void literalAction ()
notOperatorAction (line 252)

NOT operator processing

  • access: public
void notOperatorAction ()
orOperatorAction (line 261)

OR operator processing

Close current conjunction

  • access: public
void orOperatorAction ()
processLiteral (line 161)

Process expression literal.

  • access: public
void processLiteral ( $literal, integer $operator)
  • integer $operator
  • $literal
processOperator (line 151)

Process next operator.

Operators are defined by class constants: IN_AND_OPERATOR, IN_OR_OPERATOR and IN_NOT_OPERATOR

  • access: public
void processOperator (integer $operator)
  • integer $operator

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_AND_OPERATOR = 2 (line 46)
IN_LITERAL = 0 (line 44)

Input symbols

IN_NOT_OPERATOR = 1 (line 45)
IN_OR_OPERATOR = 3 (line 47)
ST_AND_OPERATOR = 3 (line 40)
ST_LITERAL = 1 (line 38)
ST_NOT_OPERATOR = 2 (line 39)
ST_OR_OPERATOR = 4 (line 41)
ST_START = 0 (line 37)

State Machine states

Documentation generated on Mon, 21 Jun 2010 15:09:31 -0400 by phpDocumentor 1.4.3