Search/Lucene/Search/QueryToken.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Search_Lucene  
Subpackage
Search  
Version
$Id$  

\Zend_Search_Lucene_Search_QueryToken

Package: Zend_Search_Lucene\Search
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  TT_WORD = 0
Token types.
>VConstant  TT_PHRASE = 1
>VConstant  TT_FIELD = 2
>VConstant  TT_FIELD_INDICATOR = 3
>VConstant  TT_REQUIRED = 4
>VConstant  TT_PROHIBITED = 5
>VConstant  TT_FUZZY_PROX_MARK = 6
>VConstant  TT_BOOSTING_MARK = 7
>VConstant  TT_RANGE_INCL_START = 8
>VConstant  TT_RANGE_INCL_END = 9
>VConstant  TT_RANGE_EXCL_START = 10
>VConstant  TT_RANGE_EXCL_END = 11
>VConstant  TT_SUBQUERY_START = 12
>VConstant  TT_SUBQUERY_END = 13
>VConstant  TT_AND_LEXEME = 14
>VConstant  TT_OR_LEXEME = 15
>VConstant  TT_NOT_LEXEME = 16
>VConstant  TT_TO_LEXEME = 17
>VConstant  TT_NUMBER = 18
>VConstant  TC_WORD = 0
TokenCategories
>VConstant  TC_PHRASE = 1
>VConstant  TC_NUMBER = 2
>VConstant  TC_SYNTAX_ELEMENT = 3

Properties

>VPropertypublicinteger $position
Token position within query.
Details
Type
integer
>VPropertypublicinteger $text
Token text.
Details
Type
integer
>VPropertypublicinteger $type
Token type.
Details
Type
integer

Methods

methodpublic__construct(integer $tokenCategory,  $tokenText, integer $position) : void

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

Parameters
NameTypeDescription
$tokenCategoryinteger
$tokenText
$positioninteger
methodpublicgetTypes() : array
static

Returns all possible lexeme types.

It's used for syntax analyzer state machine initialization
Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.2.0 .