category | Zend |
---|---|
package | Zend_Search_Lucene |
subpackage | Index |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(\Zend_Search_Lucene_Storage_Directory $directory, array $segmentInfos, integer $targetFormatVersion)
\Zend_Search_Lucene_Storage_Directory
array
integer
addDocument(\Zend_Search_Lucene_Document $document)
\Zend_Search_Lucene_Document
addIndexes(array $readers) : void
array
commit()
createIndex(\Zend_Search_Lucene_Storage_Directory $directory, integer $generation, integer $nameCount)
\Zend_Search_Lucene_Storage_Directory
integer
integer
optimize() : boolean
Returns true on success and false if another optimization or auto-optimization process is running now
boolean
_hasAnythingToMerge() : boolean
boolean
_maybeMergeSegments()
_mergeSegments(array $segments)
$segments is an array of SegmentInfo objects
array
_newSegmentName() : string
string
_updateSegments()
\Zend_Search_Lucene_Exception |
---|
$maxBufferedDocs : integer
10
Default value is 10
$maxMergeDocs : integer
PHP_INT_MAX
Small values (e.g., less than 10,000) are best for interactive indexing, as this limits the length of pauses while indexing to a few seconds. Larger values are best for batched indexing and speedier searches.
Default value is PHP_INT_MAX
$mergeFactor : integer
10
With smaller values, less RAM is used while indexing, and searches on unoptimized indices are faster, but indexing speed is slower.
With larger values, more RAM is used during indexing, and while searches on unoptimized indices are slower, indexing is faster.
Thus larger values (> 10) are best for batch index creation, and smaller values (< 10) for indices that are interactively maintained.
Default value is 10
$_currentSegment : \Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter
null
$_directory : \Zend_Search_Lucene_Storage_Directory
null
$_indexExtensions : array
array('.cfs' => '.cfs', '.cfx' => '.cfx', '.fnm' => '.fnm', '.fdx' => '.fdx', '.fdt' => '.fdt', '.tis' => '.tis', '.tii' => '.tii', '.frq' => '.frq', '.prx' => '.prx', '.tvx' => '.tvx', '.tvd' => '.tvd', '.tvf' => '.tvf', '.del' => '.del', '.sti' => '.sti')
$_newSegments : array
array()
$_segmentInfos : array
It's a reference to the corresponding Zend_Search_Lucene::$_segmentInfos array
$_segmentsToDelete : array
array()
$_targetFormatVersion : integer
$_versionUpdate : integer
0