Class ZSearchToken

Description

Located in /incubator/Zend/Search/Lucene/analysis/ZSearchToken.php (line 29)


	
			
Method Summary
 ZSearchToken __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 92)

Object constructor

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

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

Returns the position increment of this Token.

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

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(ZSearchToken::getTermText()), as the term text may have been altered by a stemmer or some other filter.

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

Returns the Token's term text.

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

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

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

positionIncrement setter

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

Documentation generated on Wed, 08 Mar 2006 04:57:00 -0800 by phpDocumentor 1.3.0RC4