## Zend_Search_Lucene_Search_QueryToken

Description

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

Located in /Zend/Search/Lucene/Search/QueryToken.php (line 34)

Class Constant Summary
TC_NUMBER = 2
TC_PHRASE = 1
TC_SYNTAX_ELEMENT = 3
TC_WORD = 0
TT_AND_LEXEME = 14
TT_BOOSTING_MARK = 7
TT_FIELD = 2
TT_FIELD_INDICATOR = 3
TT_FUZZY_PROX_MARK = 6
TT_NOT_LEXEME = 16
TT_NUMBER = 18
TT_OR_LEXEME = 15
TT_PHRASE = 1
TT_PROHIBITED = 5
TT_RANGE_EXCL_END = 11
TT_RANGE_EXCL_START = 10
TT_RANGE_INCL_END = 9
TT_RANGE_INCL_START = 8
TT_REQUIRED = 4
TT_SUBQUERY_END = 13
TT_SUBQUERY_START = 12
TT_TO_LEXEME = 17
TT_WORD = 0
Variable Summary
integer $position
integer $text
integer $type
Method Summary
static array getTypes ()
Zend_Search_Lucene_Search_QueryToken __construct (integer $tokenCategory, $tokenText, integer $position, string $tokText)
Variables
integer $position (line 119)

Token position within query.

- access: public

integer $text (line 112)

Token text.

- access: public

integer $type (line 105)

Token type.

- access: public

Methods
static getTypes (line 66)

Returns all possible lexeme types.

It's used for syntax analyzer state machine initialization

- access: public

static array getTypes ()
Constructor __construct (line 129)

IndexReader constructor needs token type and token text as a parameters.

- access: public

Zend_Search_Lucene_Search_QueryToken __construct (integer $tokenCategory, $tokenText, integer $position, string $tokText)

- integer $tokenCategory
- string $tokText
- integer $position
- $tokenText

Class Constants
TC_NUMBER = 2 (line 96)
TC_PHRASE = 1 (line 95)
TC_SYNTAX_ELEMENT = 3 (line 97)
TC_WORD = 0 (line 94)

TokenCategories

TT_AND_LEXEME = 14 (line 53)
TT_BOOSTING_MARK = 7 (line 46)
TT_FIELD = 2 (line 41)
TT_FIELD_INDICATOR = 3 (line 42)
TT_FUZZY_PROX_MARK = 6 (line 45)
TT_NOT_LEXEME = 16 (line 55)
TT_NUMBER = 18 (line 57)
TT_OR_LEXEME = 15 (line 54)
TT_PHRASE = 1 (line 40)
TT_PROHIBITED = 5 (line 44)
TT_RANGE_EXCL_END = 11 (line 50)
TT_RANGE_EXCL_START = 10 (line 49)
TT_RANGE_INCL_END = 9 (line 48)
TT_RANGE_INCL_START = 8 (line 47)
TT_REQUIRED = 4 (line 43)
TT_SUBQUERY_END = 13 (line 52)
TT_SUBQUERY_START = 12 (line 51)
TT_TO_LEXEME = 17 (line 56)
TT_WORD = 0 (line 39)

Token types.

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