Zend_Search_Lucene_Index_WriterLocated in /incubator/Zend/Search/Lucene/index/Writer.php (line 35)
Zend_Search_Lucene_Index_Writer
__construct
(ZSearchDirectory $directory, [boolean $create = false])
integer
$maxMergeDocs
(line 99)
Determines the largest number of documents ever merged by addDocument().
integer
$mergeFactor
(line 83)
Determines how often segment indices are merged by addDocument().
integer
$minMergeDocs
(line 92)
Determines the minimal number of documents required before the buffered in-memory documents are merging and a new Segment is created.
Constructor __construct (line 127)
Opens the index for writing
IndexWriter constructor needs Directory as a parameter. It should be a string with a path to the index folder or a Directory object. Second constructor parameter create is optional - true to create the index or overwrite the existing one.
Destructor __destruct (line 174)
addDocument (line 184)
Adds a document to this index.
addIndexes (line 257)
Merges the provided indexes into this index.
close (line 282)
Flushes all changes to an index and closes all associated files.
commit (line 230)
Commit current changes returns array of new segments
docCount (line 270)
Returns the number of documents currently in this index.
optimize (line 296)
Merges all segments together into a single segment, optimizing an index for search.
return void
Documentation generated on Wed, 08 Mar 2006 04:55:20 -0800 by phpDocumentor 1.3.0RC4