Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Search_Lucene_Storage_Directory $_directory = ''File system adapter.
Detailsinteger $_docCount = '0'Number of docs in a segment
DetailsZend_Search_Lucene_Storage_File $_fdtFile = 'null''.fdt' file - Stored Fields, the field data.
DetailsZend_Search_Lucene_Storage_File $_fdxFile = 'null''.fdx' file - Stored Fields, the field index.
Detailsarray $_fields = 'array'Segment fields. Array of Zend_Search_Lucene_Index_FieldInfo objects for this segment
Detailsunknown_type $_files = 'array'List of the index files.
Used for automatic compound file generation
DetailsZend_Search_Lucene_Storage_File $_frqFile = 'null'Frequencies file
Detailsinteger $_lastIndexPosition = ''Last term dictionary file position
Detailsstring $_name = ''Segment name
Detailsarray $_norms = 'array'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())
DetailsZend_Search_Lucene_Index_Term $_prevIndexTerm = ''Last saved index term
DetailsZend_Search_Lucene_Index_TermInfo $_prevIndexTermInfo = ''Last saved index term info
DetailsZend_Search_Lucene_Index_Term $_prevTerm = ''Last saved term
DetailsZend_Search_Lucene_Index_TermInfo $_prevTermInfo = ''Last saved term info
DetailsZend_Search_Lucene_Storage_File $_prxFile = 'null'Positions file
Detailsinteger $_termCount = ''Number of written terms
DetailsZend_Search_Lucene_Storage_File $_tiiFile = 'null'Term Dictionary index file
DetailsZend_Search_Lucene_Storage_File $_tisFile = 'null'Term Dictionary file
Detailsinteger $indexInterval = '128'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.
Detailsinteger $maxSkipLevels = '0'Expert: The maximum number of skip levels. Smaller values result in slightly smaller indexes, but slower skipping in big posting lists.
0 indicates that we don't use skip data
Note: not used in current implementation
Detailsinteger $skipInterval = '0x7FFFFFFF'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.
0x7FFFFFFF indicates that we don't use skip data
Note: not used in current implementation
Details__construct(
Zend_Search_Lucene_Storage_Directory $directory, string $name
)
:
Object constructor.
Details_dumpFNM(
)
:
Dump Field Info (.fnm) segment file
Details_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
)
:
Dump Term Dictionary segment file entry.
Used to write entry to .tis or .tii files
Details_generateCFS(
)
:
Generate compound index file
DetailsaddField(
Zend_Search_Lucene_Field $field
)
:
integerAdd field to the segment
Returns actual field number
DetailsaddFieldInfo(
Zend_Search_Lucene_Index_FieldInfo $fieldInfo
)
:
integerAdd fieldInfo to the segment
Returns actual field number
DetailsaddStoredFields(
array $storedFields
)
:
Add stored fields information
DetailsaddTerm(
Zend_Search_Lucene_Index_Term $termEntry, array $termDocs
)
:
Add term
Term positions is an array( docId => array(pos1, pos2, pos3, ...), ... )
Detailsclose(
)
:
Zend_Search_Lucene_Index_SegmentInfoClose segment, write it to disk and return segment info
DetailscloseDictionaryFiles(
)
:
Close dictionary
Detailscount(
)
:
integerReturns the total number of documents in this segment.
DetailsgetFieldInfos(
)
:
arrayReturns array of FieldInfo objects.
DetailsgetName(
)
:
stringReturn segment name
DetailsinitializeDictionaryFiles(
)
:
Create dicrionary, frequency and positions files and write necessary headers
Details