Class Zend_Search_Lucene_Analysis_Token

Description
  • license: New BSD License
  • copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Search/Lucene/Analysis/Token.php (line 30)


	
			
Method Summary
Zend_Search_Lucene_Analysis_Token __construct (string $text, integer $start, integer $end, [string $type = 'word'])
integer getEndOffset ()
integer getStartOffset ()
string getTermText ()
string getType ()
void setPositionIncrement (integer $positionIncrement)
Methods
Constructor __construct (line 93)

Object constructor

  • access: public
Zend_Search_Lucene_Analysis_Token __construct (string $text, integer $start, integer $end, [string $type = 'word'])
  • string $text
  • integer $start
  • integer $end
  • string $type
getEndOffset (line 156)

Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text.

  • access: public
integer getEndOffset ()
getPositionIncrement (line 119)

Returns the position increment of this Token.

  • access: public
integer getPositionIncrement ()
getStartOffset (line 145)

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.

  • access: public
integer getStartOffset ()
getTermText (line 129)

Returns the Token's term text.

  • access: public
string getTermText ()
getType (line 166)

Returns this Token's lexical type. Defaults to 'word'.

  • access: public
string getType ()
setPositionIncrement (line 109)

positionIncrement setter

  • access: public
void setPositionIncrement (integer $positionIncrement)
  • integer $positionIncrement

Documentation generated on Sun, 29 Oct 2006 21:27:35 -0600 by phpDocumentor 1.3.0RC6