Class Zend_Search_Lucene_Analysis_Token

Description
  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 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)
 integer getEndOffset ()
 integer getStartOffset ()
 string getTermText ()
 void setPositionIncrement (integer $positionIncrement)
Methods
Constructor __construct (line 86)

Object constructor

  • access: public
Zend_Search_Lucene_Analysis_Token __construct (string $text, integer $start, integer $end, string $type)
  • string $text
  • integer $start
  • integer $end
  • string $type
getEndOffset (line 148)

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 111)

Returns the position increment of this Token.

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

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 121)

Returns the Token's term text.

  • access: public
string getTermText ()
setPositionIncrement (line 101)

positionIncrement setter

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

Documentation generated on Wed, 21 Feb 2007 12:01:10 -0800 by phpDocumentor 1.3.1