QueryToken
in package
Tags
Table of Contents
Constants
- TC_NUMBER = 2
- TC_PHRASE = 1
- TC_SYNTAX_ELEMENT = 3
- TC_WORD = 0
- TokenCategories
- 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
- Token types.
Properties
Methods
- __construct() : mixed
- IndexReader constructor needs token type and token text as a parameters.
- getTypes() : array<string|int, mixed>
- Returns all possible lexeme types.
Constants
TC_NUMBER
public
mixed
TC_NUMBER
= 2
TC_PHRASE
public
mixed
TC_PHRASE
= 1
TC_SYNTAX_ELEMENT
public
mixed
TC_SYNTAX_ELEMENT
= 3
TC_WORD
TokenCategories
public
mixed
TC_WORD
= 0
TT_AND_LEXEME
public
mixed
TT_AND_LEXEME
= 14
TT_BOOSTING_MARK
public
mixed
TT_BOOSTING_MARK
= 7
TT_FIELD
public
mixed
TT_FIELD
= 2
TT_FIELD_INDICATOR
public
mixed
TT_FIELD_INDICATOR
= 3
TT_FUZZY_PROX_MARK
public
mixed
TT_FUZZY_PROX_MARK
= 6
TT_NOT_LEXEME
public
mixed
TT_NOT_LEXEME
= 16
TT_NUMBER
public
mixed
TT_NUMBER
= 18
TT_OR_LEXEME
public
mixed
TT_OR_LEXEME
= 15
TT_PHRASE
public
mixed
TT_PHRASE
= 1
TT_PROHIBITED
public
mixed
TT_PROHIBITED
= 5
TT_RANGE_EXCL_END
public
mixed
TT_RANGE_EXCL_END
= 11
TT_RANGE_EXCL_START
public
mixed
TT_RANGE_EXCL_START
= 10
TT_RANGE_INCL_END
public
mixed
TT_RANGE_INCL_END
= 9
TT_RANGE_INCL_START
public
mixed
TT_RANGE_INCL_START
= 8
TT_REQUIRED
public
mixed
TT_REQUIRED
= 4
TT_SUBQUERY_END
public
mixed
TT_SUBQUERY_END
= 13
TT_SUBQUERY_START
public
mixed
TT_SUBQUERY_START
= 12
TT_TO_LEXEME
public
mixed
TT_TO_LEXEME
= 17
TT_WORD
Token types.
public
mixed
TT_WORD
= 0
Properties
$position
Token position within query.
public
int
$position
$text
Token text.
public
int
$text
$type
Token type.
public
int
$type
Methods
__construct()
IndexReader constructor needs token type and token text as a parameters.
public
__construct(int $tokenCategory, mixed $tokenText, int $position) : mixed
Parameters
- $tokenCategory : int
- $tokenText : mixed
- $position : int
Tags
getTypes()
Returns all possible lexeme types.
public
static getTypes() : array<string|int, mixed>
It's used for syntax analyzer state machine initialization