Class Zend_Search_Lucene_Index_Term

Description

A Term represents a word from text. This is the unit of search. It is composed of two elements, the text of the word, as a string, and the name of the field that the text occured in, an interned string.

Note that terms may represent more than words from text fields, but also things like dates, email addresses, urls, etc.

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

Located in /Search/Lucene/Index/Term.php (line 38)


	
			
Variable Summary
 mixed $field
 string $text
Method Summary
 static string getLength (string $str)
 static string getPrefix (string $str, integer $length)
 Zend_Search_Lucene_Index_Term __construct ( $text, [ $field = null])
 string key ()
Variables
mixed $field (line 45)

Field name or field number (depending from context)

  • access: public
string $text (line 52)

Term value

  • access: public
Methods
static getLength (line 116)

Get UTF-8 string length

  • access: public
static string getLength (string $str)
  • string $str
static getPrefix (line 82)

Get term prefix

  • access: public
static string getPrefix (string $str, integer $length)
  • string $str
  • integer $length
Constructor __construct (line 58)

Object constructor

  • access: public
Zend_Search_Lucene_Index_Term __construct ( $text, [ $field = null])
  • $text
  • $field
key (line 70)

Returns term key

  • access: public
string key ()

Documentation generated on Mon, 21 Jun 2010 15:48:31 -0400 by phpDocumentor 1.4.3