## Zend_Search_Lucene_Search_BooleanExpressionRecognizer

Description

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

Located in /Zend/Search/Lucene/Search/BooleanExpressionRecognizer.php (line 39)

    Zend_Search_Lucene_FSM
       |
       --Zend_Search_Lucene_Search_BooleanExpressionRecognizer

Class Constant Summary
IN_AND_OPERATOR = 2
IN_LITERAL = 0
IN_NOT_OPERATOR = 1
IN_OR_OPERATOR = 3
ST_AND_OPERATOR = 3
ST_LITERAL = 1
ST_NOT_OPERATOR = 2
ST_OR_OPERATOR = 4
ST_START = 0
Method Summary
array finishExpression ()
Zend_Search_Lucene_Search_BooleanExpressionRecognizer __construct ()
void literalAction ()
void notOperatorAction ()
void orOperatorAction ()
void processLiteral ( $literal, integer $operator)
void processOperator (integer $operator)
Methods
finishExpression (line 193)

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

- access: public
- throws: Zend_Search_Lucene_Exception

array finishExpression ()
Constructor __construct (line 106)

Object constructor

- access: public

Zend_Search_Lucene_Search_BooleanExpressionRecognizer __construct ()

Redefinition of:

Zend_Search_Lucene_FSM::__construct()
  Finite State machine constructor

literalAction (line 231)

Literal processing

- access: public

void literalAction ()
notOperatorAction (line 213)

NOT operator processing

- access: public

void notOperatorAction ()
orOperatorAction (line 222)

OR operator processing

Close current conjunction

- access: public

void orOperatorAction ()
processLiteral (line 160)

Process expression literal.

- access: public

void processLiteral ( $literal, integer $operator)

- integer $operator
- $literal

processOperator (line 150)

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 51)
IN_LITERAL = 0 (line 49)

Input symbols

IN_NOT_OPERATOR = 1 (line 50)
IN_OR_OPERATOR = 3 (line 52)
ST_AND_OPERATOR = 3 (line 45)
ST_LITERAL = 1 (line 43)
ST_NOT_OPERATOR = 2 (line 44)
ST_OR_OPERATOR = 4 (line 46)
ST_START = 0 (line 42)

State Machine states

Documentation generated on Wed, 21 Feb 2007 11:46:01 -0800 by phpDocumentor 1.3.1