Class Zend_Search_Lucene_Index_SegmentInfo

Description

Located in /incubator/Zend/Search/Lucene/index/SegmentInfo.php (line 32)


	
			
Method Summary
 Zend_Search_Lucene_Index_SegmentInfo __construct (string $name, integer $docCount, ZSearchDirectory $directory)
 integer count ()
 ZSearchFieldInfo getField (integer $fieldNum)
 integer getFieldNum (string $fieldName)
 array getFields ([boolean $indexed = false])
 string getName ()
 string norm (integer $id, string $fieldName)
 ZSearchFile openCompoundFile (string $extension)
 void _loadDictionary ()
Methods
Constructor __construct (line 116)

Zend_Search_Lucene_Index_SegmentInfo constructor needs Segmentname, Documents count and Directory as a parameter.

  • access: public
Zend_Search_Lucene_Index_SegmentInfo __construct (string $name, integer $docCount, ZSearchDirectory $directory)
count (line 229)

Returns the total number of documents in this segment.

  • access: public
integer count ()
getField (line 201)

Returns field info for specified field

  • access: public
ZSearchFieldInfo getField (integer $fieldNum)
  • integer $fieldNum
getFieldNum (line 184)

Returns field index or -1 if field is not found

  • access: public
integer getFieldNum (string $fieldName)
  • string $fieldName
getFields (line 213)

Returns array of fields.

if $indexed parameter is true, then returns only indexed fields.

  • access: public
array getFields ([boolean $indexed = false])
  • boolean $indexed
getName (line 291)

Return segment name

  • access: public
string getName ()
getTermInfo (line 303)

Scans terms dictionary and returns term info

  • access: public
norm (line 396)

Returns normalization factor for specified documents

  • access: public
string norm (integer $id, string $fieldName)
  • integer $id
  • string $fieldName
openCompoundFile (line 164)

Opens index file stoted within compound index file

  • access: public
  • throws: Zend_Search_Lucene_Exception
ZSearchFile openCompoundFile (string $extension)
  • string $extension
_loadDictionary (line 238)

Loads Term dictionary from TermInfoIndex file

  • access: protected
void _loadDictionary ()

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