Zend_Search_LuceneLocated in /Zend/Search/Lucene.php (line 60)
boolean
$_closeDirOnExit
= true (line 74)
File system adapter closing option
Zend_Search_Lucene_Storage_Directory
$_directory
= null (line 67)
File system adapter.
integer
$_docCount
= 0 (line 95)
Number of documents in this index.
array
$_segmentInfos
= array() (line 88)
Array of Zend_Search_Lucene_Index_SegmentInfo objects for this index.
Zend_Search_Lucene_Index_Writer
$_writer
= null (line 81)
Writer for this index, not instantiated unless required.
Constructor __construct (line 107)
Opens the index.
IndexReader constructor needs Directory as a parameter. It should be a string with a path to the index folder or a Directory object.
Destructor __destruct (line 164)
Object destructor
addDocument (line 489)
Adds a document to this index.
commit (line 504)
Commit changes resulting from delete() or undeleteAll() operations.
count (line 204)
Returns the total number of documents in this index.
delete (line 558)
Deletes a document from the index. $doc may contain a Zend_Search_Lucene_Document or the number of the document to delete.
docFreq (line 434)
Returns the number of documents in this index containing the $term.
find (line 218)
Performs a query against the index and returns an array of Zend_Search_Lucene_Search_QueryHit objects.
Input is a string or Zend_Search_Lucene_Search_Query.
getDirectory (line 193)
Returns the Zend_Search_Lucene_Storage_Directory instance for this index.
getDocument (line 274)
Returns a Zend_Search_Lucene_Document object for the document number $id in this index.
getFieldNames (line 257)
Returns a list of all unique field names that exist in this index.
getIndexWriter (line 178)
Returns an instance of Zend_Search_Lucene_Index_Writer for the index
getSimilarity (line 453)
Retrive similarity used by index reader
hasDeletions (line 545)
Returns true if any documents have been deleted from this index.
norm (line 466)
Returns a normalization factor for "field, document" pair.
termDocs (line 338)
Returns an array of all the documents which contain term.
termPositions (line 380)
Returns an array of all term positions in the documents.
Return array structure: array( docId => array( pos1, pos2, ...), ...)
terms (line 533)
Returns an array of all terms in this index.
undeleteAll (line 567)
Undeletes all documents currently marked as deleted in this index.
Documentation generated on Tue, 18 Apr 2006 11:55:18 -0700 by phpDocumentor 1.3.0RC3