Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
TT_WORD = '0'
Token types.
TT_PHRASE = '1'
TT_FIELD = '2'
TT_FIELD_INDICATOR = '3'
TT_REQUIRED = '4'
TT_PROHIBITED = '5'
TT_FUZZY_PROX_MARK = '6'
TT_BOOSTING_MARK = '7'
TT_RANGE_INCL_START = '8'
TT_RANGE_INCL_END = '9'
TT_RANGE_EXCL_START = '10'
TT_RANGE_EXCL_END = '11'
TT_SUBQUERY_START = '12'
TT_SUBQUERY_END = '13'
TT_AND_LEXEME = '14'
TT_OR_LEXEME = '15'
TT_NOT_LEXEME = '16'
TT_TO_LEXEME = '17'
TT_NUMBER = '18'
TC_WORD = '0'
TokenCategories
TC_PHRASE = '1'
TC_NUMBER = '2'
TC_SYNTAX_ELEMENT = '3'
integer $position = ''
Token position within query.
integer $text = ''
Token text.
integer $type = ''
Token type.
__construct(
integer $tokenCategory, $tokenText, integer $position
)
:
IndexReader constructor needs token type and token text as a parameters.
getTypes(
)
:
array
Returns all possible lexeme types.
It's used for syntax analyzer state machine initialization