| [ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
Zend Framework LICENSE
| Copyright: | Copyright (c) 2005-2006 Zend Technologies USA Inc. (http://www.zend.com) |
| License: | http://www.zend.com/license/framework/1_0.txt Zend Framework License version 1.0 |
| Poids: | 308 lignes (8 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
Zend_Search_Lucene_Index_Writer:: (9 méthodes):
__construct()
addDocument()
_updateSegments()
commit()
addIndexes()
docCount()
close()
optimize()
_newSegmentName()
Classe: Zend_Search_Lucene_Index_Writer - X-Ref
| __construct(Zend_Search_Lucene_Storage_Directory $directory, $create = false) X-Ref |
| 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. param: Zend_Search_Lucene_Storage_Directory $directory param: boolean $create |
| addDocument(Zend_Search_Lucene_Document $document) X-Ref |
| Adds a document to this index. param: Zend_Search_Lucene_Document $document |
| _updateSegments() X-Ref |
| Update segments file by adding current segment to a list |
| commit() X-Ref |
| Commit current changes returns array of new segments return: array |
| addIndexes($readers) X-Ref |
| Merges the provided indexes into this index. param: array $readers return: void |
| docCount($readers) X-Ref |
| Returns the number of documents currently in this index. return: integer |
| close() X-Ref |
| Flushes all changes to an index and closes all associated files. |
| optimize() X-Ref |
| Merges all segments together into a single segment, optimizing an index for search. return void |
| _newSegmentName() X-Ref |
| Get name for new segment return: string |
| Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |