Zend_Search_Lucene_Index_SegmentInfoLocated in /Zend/Search/Lucene/Index/SegmentInfo.php (line 37)
Zend_Search_Lucene_Index_SegmentInfo
__construct
(string $name, integer $docCount, Zend_Search_Lucene_Storage_Directory $directory)
Zend_Search_Lucene_Storage_File
openCompoundFile
(string $extension, [boolean $shareHandler = true])
Constructor __construct (line 157)
Zend_Search_Lucene_Index_SegmentInfo constructor needs Segmentname, Documents count and Directory as a parameter.
compoundFileLength (line 273)
Get compound file length
count (line 351)
Returns the total number of documents in this segment (including deleted documents).
currentTerm (line 939)
Returns term in current position
currentTermPositions (line 951)
Returns an array of all term positions in the documents.
Return array structure: array( docId => array( pos1, pos2, ...), ...)
delete (line 640)
Deletes a document from the index segment.
$id is an internal document id
getField (line 313)
Returns field info for specified field
getFieldInfos (line 341)
Returns array of FieldInfo objects.
getFieldNum (line 296)
Returns field index or -1 if field is not found
getFields (line 325)
Returns array of fields.
if $indexed parameter is true, then returns only indexed fields.
getName (line 405)
Return segment name
getTermInfo (line 440)
Scans terms dictionary and returns term info
hasDeletions (line 628)
Returns true if any documents have been deleted from this index segment.
isDeleted (line 664)
Checks, that document is deleted
nextTerm (line 859)
Scans terms dictionary and returns next term
norm (line 583)
Returns normalization factor for specified documents
normVector (line 604)
Returns norm vector, encoded in a byte string
numDocs (line 379)
Returns the total number of non-deleted documents in this segment.
openCompoundFile (line 248)
Opens index file stoted within compound index file
reset (line 811)
Reset terms stream
$startId - id for the fist document $compact - remove deleted documents
Returns start document id for the next segment
writeChanges (line 681)
Write changes if it's necessary.
Documentation generated on Wed, 21 Feb 2007 11:59:11 -0800 by phpDocumentor 1.3.1