Zend Framework
1.12
|
Public Member Functions | |
__construct ($text, $start, $end) | |
Object constructor. | |
setPositionIncrement ($positionIncrement) | |
positionIncrement setter | |
getPositionIncrement () | |
Returns the position increment of this Token. | |
getTermText () | |
Returns the Token's term text. | |
setTermText ($text) | |
Sets the Token's term text. | |
getStartOffset () | |
Returns this Token's starting offset, the position of the first character corresponding to this token in the source text. | |
getEndOffset () | |
Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text. | |
__construct | ( | $text, | |
$start, | |||
$end | |||
) |
Object constructor.
string | $text | |
integer | $start | |
integer | $end | |
string | $type |
getEndOffset | ( | ) |
Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text.
getPositionIncrement | ( | ) |
Returns the position increment of this Token.
getStartOffset | ( | ) |
Returns this Token's starting offset, the position of the first character corresponding to this token in the source text.
Note: The difference between getEndOffset() and getStartOffset() may not be equal to strlen(Zend_Search_Lucene_Analysis_Token::getTermText()), as the term text may have been altered by a stemmer or some other filter.
getTermText | ( | ) |
Returns the Token's term text.
setPositionIncrement | ( | $positionIncrement | ) |
positionIncrement setter
integer | $positionIncrement |
setTermText | ( | $text | ) |
Sets the Token's term text.
string | $text |