## Zend_Search_Lucene_Search_QueryParser

Description

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

Located in /Zend/Search/Lucene/Search/QueryParser.php (line 66)

    Zend_Search_Lucene_FSM
       |
       --Zend_Search_Lucene_Search_QueryParser

Class Constant Summary
B_AND = 1
B_OR = 0
ST_CLOSEDINT_RQ_END = 5
ST_CLOSEDINT_RQ_FIRST_TERM = 2
ST_CLOSEDINT_RQ_LAST_TERM = 4
ST_CLOSEDINT_RQ_START = 1
ST_CLOSEDINT_RQ_TO_TERM = 3
ST_COMMON_QUERY_ELEMENT = 0
ST_OPENEDINT_RQ_END = 10
ST_OPENEDINT_RQ_FIRST_TERM = 7
ST_OPENEDINT_RQ_LAST_TERM = 9
ST_OPENEDINT_RQ_START = 6
ST_OPENEDINT_RQ_TO_TERM = 8
Method Summary
static string getDefaultEncoding ()
static integer getDefaultOperator ()
static Zend_Search_Lucene_Search_Query parse (string $strQuery, [string $encoding = null])
static void setDefaultEncoding (string $encoding)
static void setDefaultOperator (integer $operator)
Zend_Search_Lucene_Search_QueryParser __construct ()
void addPhraseEntry ()
void addTermEntry ()
void closedRQFirstTerm ()
void closedRQLastTerm ()
void logicalOperator ()
void openedRQFirstTerm ()
void openedRQLastTerm ()
void processFuzzyProximityModifier ()
void processModifierParameter ()
void setField ()
void setSign ()
void subqueryEnd ()
void subqueryStart ()
Methods
static getDefaultEncoding (line 279)

Get query string default encoding

- access: public

static string getDefaultEncoding ()
static getDefaultOperator (line 307)

Get default boolean operator

- access: public

static integer getDefaultOperator ()
static parse (line 324)

Parses a query string

- access: public
- throws: Zend_Search_Lucene_Search_QueryParserException

static Zend_Search_Lucene_Search_Query parse (string $strQuery, [string $encoding = null])

- string $strQuery
- string $encoding

static setDefaultEncoding (line 265)

Set query string default encoding

- access: public

static void setDefaultEncoding (string $encoding)

- string $encoding

static setDefaultOperator (line 293)

Set default boolean operator

- access: public

static void setDefaultOperator (integer $operator)

- integer $operator

Constructor __construct (line 173)

Parser constructor

- access: public

Zend_Search_Lucene_Search_QueryParser __construct ()

Redefinition of:

Zend_Search_Lucene_FSM::__construct()
  Finite State machine constructor

addPhraseEntry (line 383)

Add phrase to a query

- access: public

void addPhraseEntry ()
addTermEntry (line 374)

Add term to a query

- access: public

void addTermEntry ()
closedRQFirstTerm (line 500)

Process first range query term (closed interval)

- access: public

void closedRQFirstTerm ()
closedRQLastTerm (line 510)

Process last range query term (closed interval)

- access: public
- throws: Zend_Search_Lucene_Search_QueryParserException

void closedRQLastTerm ()
logicalOperator (line 468)

Process logical operator

- access: public

void logicalOperator ()
openedRQFirstTerm (line 476)

Process first range query term (opened interval)

- access: public

void openedRQFirstTerm ()
openedRQLastTerm (line 486)

Process last range query term (opened interval)

- access: public
- throws: Zend_Search_Lucene_Search_QueryParserException

void openedRQLastTerm ()
processFuzzyProximityModifier (line 409)

Process fuzzy search/proximity modifier - '~'

- access: public

void processFuzzyProximityModifier ()
processModifierParameter (line 419)

Process modifier parameter

- access: public
- throws: Zend_Search_Lucene_Exception

void processModifierParameter ()
setField (line 392)

Set entry field

- access: public

void setField ()
setSign (line 400)

Set entry sign

- access: public

void setSign ()
subqueryEnd (line 453)

End subquery

- access: public

void subqueryEnd ()
subqueryStart (line 444)

Start subquery

- access: public

void subqueryStart ()

#### 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
B_AND = 1 (line 147)
B_OR = 0 (line 146)

Boolean operators constants

ST_CLOSEDINT_RQ_END = 5 (line 163)
ST_CLOSEDINT_RQ_FIRST_TERM = 2 (line 160)
ST_CLOSEDINT_RQ_LAST_TERM = 4 (line 162)
ST_CLOSEDINT_RQ_START = 1 (line 159)
ST_CLOSEDINT_RQ_TO_TERM = 3 (line 161)
ST_COMMON_QUERY_ELEMENT = 0 (line 158)

Query parser State Machine states

ST_OPENEDINT_RQ_END = 10 (line 168)
ST_OPENEDINT_RQ_FIRST_TERM = 7 (line 165)
ST_OPENEDINT_RQ_LAST_TERM = 9 (line 167)
ST_OPENEDINT_RQ_START = 6 (line 164)
ST_OPENEDINT_RQ_TO_TERM = 8 (line 166)

Documentation generated on Wed, 21 Feb 2007 11:58:07 -0800 by phpDocumentor 1.3.1