Class Zend_Search_Lucene_Index_SegmentWriter

Description

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


	
			
Variable Summary
Method Summary
 Zend_Search_Lucene_Index_SegmentWriter __construct (Zend_Search_Lucene_Storage_Directory $directory, string $name)
 void addDocument (Zend_Search_Lucene_Document $document)
 void _addFieldInfo (Zend_Search_Lucene_Field $field)
 void _dumpDictionary ()
 void _dumpFNM ()
 void _dumpTermDictEntry (Zend_Search_Lucene_Storage_File $dicFile, Zend_Search_Lucene_Index_Term &$prevTerm, Zend_Search_Lucene_Index_Term $term, Zend_Search_Lucene_Index_TermInfo &$prevTermInfo, Zend_Search_Lucene_Index_TermInfo $termInfo)
 void _generateCFS ()
Variables
integer $indexInterval = 128 (line 49)

Expert: The fraction of terms in the "dictionary" which should be stored

in RAM. Smaller values use more memory, but make searching slightly faster, while larger values use less memory and make searching slightly slower. Searching is typically not dominated by dictionary lookup, so tweaking this is rarely useful.

  • access: public
  • static:
integer $skipInterval = 0x7FFFFFFF (line 62)

Expert: The fraction of TermDocs entries stored in skip tables.

Larger values result in smaller indexes, greater acceleration, but fewer accelerable cases, while smaller values result in bigger indexes, less acceleration and more accelerable cases. More detailed experiments would be useful here.

0x0x7FFFFFFF indicates that we don't use skip data Default value is 16

  • access: public
  • static:
Zend_Search_Lucene_Storage_Directory $_directory (line 83)

File system adapter.

  • access: private
integer $_docCount (line 69)

Number of docs in a segment

  • access: private
Zend_Search_Lucene_Storage_File $_fdtFile (line 141)

'.fdx' file - Stored Fields, the field data.

  • access: private
Zend_Search_Lucene_Storage_File $_fdxFile (line 134)

'.fdx' file - Stored Fields, the field index.

  • access: private
array $_fields (line 114)

Segment fields. Array of Zend_Search_Lucene_Index_FieldInfo objects for this segment

  • access: private
unknown_type $_files (line 91)

List of the index files.

Used for automatic compound file generation

  • access: private
string $_name (line 76)

Segment name

  • access: private
array $_norms (line 126)

Normalization factors.

An array fieldName => normVector normVector is a binary string. Each byte corresponds to an indexed document in a segment and encodes normalization factor (float value, encoded by Zend_Search_Lucene_Search_Similarity::encodeNorm())

  • access: private
array $_termDictionary (line 100)

Term Dictionary Array of the Zend_Search_Lucene_Index_Term objects Corresponding Zend_Search_Lucene_Index_TermInfo object stored in the $_termDictionaryInfos

  • access: private
array $_termDocs (line 107)

Documents, which contain the term

  • access: private
Methods
Constructor __construct (line 150)

Object constructor.

  • access: public
Zend_Search_Lucene_Index_SegmentWriter __construct (Zend_Search_Lucene_Storage_Directory $directory, string $name)
addDocument (line 192)

Adds a document to this segment.

  • access: public
  • throws: Zend_Search_Lucene_Exception
void addDocument (Zend_Search_Lucene_Document $document)
close (line 474)

Close segment, write it to disk and return segment info

  • access: public
_addFieldInfo (line 171)

Add field to the segment

  • access: private
void _addFieldInfo (Zend_Search_Lucene_Field $field)
_dumpDictionary (line 352)

Dump Term Dictionary (.tis) and Term Dictionary Index (.tii) segment files

  • access: private
void _dumpDictionary ()
_dumpFNM (line 272)

Dump Field Info (.fnm) segment file

  • access: private
void _dumpFNM ()
_dumpTermDictEntry (line 301)

Dump Term Dictionary segment file entry.

Used to write entry to .tis or .tii files

  • access: private
void _dumpTermDictEntry (Zend_Search_Lucene_Storage_File $dicFile, Zend_Search_Lucene_Index_Term &$prevTerm, Zend_Search_Lucene_Index_Term $term, Zend_Search_Lucene_Index_TermInfo &$prevTermInfo, Zend_Search_Lucene_Index_TermInfo $termInfo)
_generateCFS (line 439)

Generate compound index file

  • access: private
void _generateCFS ()

Documentation generated on Tue, 18 Apr 2006 11:55:34 -0700 by phpDocumentor 1.3.0RC3