Zend Framework
1.12
|
Public Member Functions | |
__construct (Zend_Search_Lucene_Storage_Directory $directory, $name) | |
Object constructor. | |
addField (Zend_Search_Lucene_Field $field) | |
Add field to the segment. | |
addFieldInfo (Zend_Search_Lucene_Index_FieldInfo $fieldInfo) | |
Add fieldInfo to the segment. | |
getFieldInfos () | |
Returns array of FieldInfo objects. | |
addStoredFields ($storedFields) | |
Add stored fields information. | |
count () | |
Returns the total number of documents in this segment. | |
getName () | |
Return segment name. | |
initializeDictionaryFiles () | |
Create dicrionary, frequency and positions files and write necessary headers. | |
addTerm ($termEntry, $termDocs) | |
Add term. | |
closeDictionaryFiles () | |
Close dictionary. | |
close () | |
Close segment, write it to disk and return segment info. | |
Static Public Attributes | |
static | $indexInterval = 128 |
static | $skipInterval = 0x7FFFFFFF |
static | $maxSkipLevels = 0 |
Protected Member Functions | |
_dumpFNM () | |
Dump Field Info (.fnm) segment file. | |
_dumpTermDictEntry (Zend_Search_Lucene_Storage_File $dicFile, &$prevTerm, Zend_Search_Lucene_Index_Term $term, &$prevTermInfo, Zend_Search_Lucene_Index_TermInfo $termInfo) | |
Dump Term Dictionary segment file entry. | |
_generateCFS () | |
Generate compound index file. | |
Protected Attributes | |
$_docCount = 0 | |
$_name | |
$_directory | |
$_files = array() | |
$_fields = array() | |
$_norms = array() | |
$_fdxFile = null | |
$_fdtFile = null | |
__construct | ( | Zend_Search_Lucene_Storage_Directory | $directory, |
$name | |||
) |
Object constructor.
Zend_Search_Lucene_Storage_Directory | $directory | |
string | $name |
|
protected |
Dump Field Info (.fnm) segment file.
|
protected |
Dump Term Dictionary segment file entry.
Used to write entry to .tis or .tii files
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 |
|
protected |
Generate compound index file.
addField | ( | Zend_Search_Lucene_Field | $field | ) |
Add field to the segment.
Returns actual field number
Zend_Search_Lucene_Field | $field |
addFieldInfo | ( | Zend_Search_Lucene_Index_FieldInfo | $fieldInfo | ) |
Add fieldInfo to the segment.
Returns actual field number
Zend_Search_Lucene_Index_FieldInfo | $fieldInfo |
addStoredFields | ( | $storedFields | ) |
Add stored fields information.
array | $storedFields | array of Zend_Search_Lucene_Field objects |
addTerm | ( | $termEntry, | |
$termDocs | |||
) |
Add term.
Term positions is an array( docId => array(pos1, pos2, pos3, ...), ... )
Zend_Search_Lucene_Index_Term | $termEntry | |
array | $termDocs |
|
abstract |
Close segment, write it to disk and return segment info.
closeDictionaryFiles | ( | ) |
Close dictionary.
count | ( | ) |
Returns the total number of documents in this segment.
getFieldInfos | ( | ) |
Returns array of FieldInfo objects.
getName | ( | ) |
Return segment name.
initializeDictionaryFiles | ( | ) |
Create dicrionary, frequency and positions files and write necessary headers.
Dump dictionary header
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |