## Zend_Search_Lucene_Index_SegmentWriter

Description

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

Located in /Zend/Search/Lucene/Index/SegmentWriter.php (line 40)

Variable Summary
static integer $indexInterval
static integer $skipInterval
Method Summary
Zend_Search_Lucene_Index_SegmentWriter __construct (Zend_Search_Lucene_Storage_Directory $directory, string $name)
void addDocument (Zend_Search_Lucene_Document $document)
Zend_Search_Lucene_Index_SegmentInfo close ()
Variables
static integer $indexInterval = 128 (line 51)

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.

- access: public

static integer $skipInterval = 0x7FFFFFFF (line 64)

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

- access: public

Methods
Constructor __construct (line 147)

Object constructor.

- access: public

Zend_Search_Lucene_Index_SegmentWriter __construct (Zend_Search_Lucene_Storage_Directory $directory, string $name)

- Zend_Search_Lucene_Storage_Directory $directory
- string $name

addDocument (line 191)

Adds a document to this segment.

- access: public
- throws: Zend_Search_Lucene_Exception

void addDocument (Zend_Search_Lucene_Document $document)

- Zend_Search_Lucene_Document $document

close (line 502)

Close segment, write it to disk and return segment info

- access: public

Zend_Search_Lucene_Index_SegmentInfo close ()

Documentation generated on Tue, 11 Jul 2006 12:18:04 -0500 by phpDocumentor 1.3.0RC6