Zend_Search_Lucene_Index_SegmentWriterLocated in /Zend/Search/Lucene/Index/SegmentWriter.php (line 43)
Zend_Search_Lucene_Index_SegmentWriter
__construct
(Zend_Search_Lucene_Storage_Directory $directory, string $name)
void
_dumpTermDictEntry
(Zend_Search_Lucene_Storage_File $dicFile, &$prevTerm, Zend_Search_Lucene_Index_Term $term, &$prevTermInfo, Zend_Search_Lucene_Index_TermInfo $termInfo, Zend_Search_Lucene_Index_Term $prevTerm, Zend_Search_Lucene_Index_TermInfo $prevTermInfo)
static integer
$indexInterval
= 128 (line 54)
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.
static integer
$skipInterval
= 0x7FFFFFFF (line 67)
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
Zend_Search_Lucene_Storage_Directory
$_directory
(line 88)
File system adapter.
integer
$_docCount
= 0 (line 74)
Number of docs in a segment
Zend_Search_Lucene_Storage_File
$_fdtFile
= null (line 130)
'.fdt' file - Stored Fields, the field data.
Zend_Search_Lucene_Storage_File
$_fdxFile
= null (line 123)
'.fdx' file - Stored Fields, the field index.
array
$_fields
= array() (line 103)
Segment fields. Array of Zend_Search_Lucene_Index_FieldInfo objects for this segment
unknown_type
$_files
= array() (line 96)
List of the index files.
Used for automatic compound file generation
string
$_name
(line 81)
Segment name
array
$_norms
= array() (line 115)
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())
Constructor __construct (line 139)
Object constructor.
addField (line 154)
Add field to the segment
Returns actual field number
addFieldInfo (line 181)
Add fieldInfo to the segment
Returns actual field number
addStoredFields (line 215)
Add stored fields information
addTerm (line 406)
Add term
Term positions is an array( docId => array(pos1, pos2, pos3, ...), ... )
close (line 598)
Close segment, write it to disk and return segment info
closeDictionaryFiles (line 460)
Close dictionary
count (line 249)
Returns the total number of documents in this segment.
getFieldInfos (line 205)
Returns array of FieldInfo objects.
initializeDictionaryFiles (line 357)
Create dicrionary, frequency and positions files and write necessary headers
_dumpFNM (line 257)
Dump Field Info (.fnm) segment file
_dumpTermDictEntry (line 480)
Dump Term Dictionary segment file entry.
Used to write entry to .tis or .tii files
_generateCFS (line 557)
Generate compound index file
Documentation generated on Wed, 21 Feb 2007 11:59:20 -0800 by phpDocumentor 1.3.1