HumHub Documentation (unofficial)

QueryToken
in package

Tags
category

Zend

subpackage

Search

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

$position  : int
Token position within query.
$text  : int
Token text.
$type  : int
Token type.

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_SYNTAX_ELEMENT

public mixed TC_SYNTAX_ELEMENT = 3

TC_WORD

TokenCategories

public mixed TC_WORD = 0

TT_BOOSTING_MARK

public mixed TT_BOOSTING_MARK = 7

TT_FIELD_INDICATOR

public mixed TT_FIELD_INDICATOR = 3

TT_FUZZY_PROX_MARK

public mixed TT_FUZZY_PROX_MARK = 6

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_SUBQUERY_END

public mixed TT_SUBQUERY_END = 13

TT_SUBQUERY_START

public mixed TT_SUBQUERY_START = 12

Properties

$position

Token position within query.

public int $position

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
throws
InvalidArgumentException

getTypes()

Returns all possible lexeme types.

public static getTypes() : array<string|int, mixed>

It's used for syntax analyzer state machine initialization

Return values
array<string|int, mixed>

        
On this page

Search results