Class 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)
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)
addDocument (line 191)

Adds a document to this segment.

  • access: public
  • throws: Zend_Search_Lucene_Exception
void addDocument (Zend_Search_Lucene_Document $document)
close (line 502)

Close segment, write it to disk and return segment info

  • access: public

Documentation generated on Fri, 30 Jun 2006 11:21:35 -0500 by phpDocumentor 1.3.0RC6