Docs For Class Zend_Search_Lucene_Index_SegmentMerger

## Class Zend_Search_Lucene_Index_SegmentMerger

Description

- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Search/Lucene/Index/SegmentMerger.php (line 43)

Method Summary
Zend_Search_Lucene_Index_SegmentMerger __construct (Zend_Search_Lucene_Storage_Directory $directory, string $name)
void addSource (Zend_Search_Lucene_Index_SegmentInfo $segmentInfo, Zend_Search_Lucene_Index_SegmentInfo $segment)
Zend_Search_Lucene_Index_SegmentInfo merge ()
Methods
Constructor __construct (line 92)

Object constructor.

Creates new segment merger with $directory as target to merge segments into and $name as a name of new segment

- access: public

Zend_Search_Lucene_Index_SegmentMerger __construct (Zend_Search_Lucene_Storage_Directory $directory, string $name)

- Zend_Search_Lucene_Storage_Directory $directory
- string $name

addSource (line 103)

Add segmnet to a collection of segments to be merged

- access: public

void addSource (Zend_Search_Lucene_Index_SegmentInfo $segmentInfo, Zend_Search_Lucene_Index_SegmentInfo $segment)

- Zend_Search_Lucene_Index_SegmentInfo $segment
- Zend_Search_Lucene_Index_SegmentInfo $segmentInfo

merge (line 117)

Do merge.

Returns number of documents in newly created segment

- access: public
- throws: Zend_Search_Lucene_Exception

Zend_Search_Lucene_Index_SegmentInfo merge ()

Documentation generated on Sun, 29 Oct 2006 21:27:31 -0600 by phpDocumentor 1.3.0RC6