[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/demos/quickstart/protected/index/Zend/Search/ -> Lucene.php (sommaire)

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: 569 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Zend_Search_Lucene:: (19 méthodes):
  __construct()
  __destruct()
  getIndexWriter()
  getDirectory()
  count()
  find()
  getFieldNames()
  getDocument()
  termDocs()
  termPositions()
  docFreq()
  getSimilarity()
  norm()
  addDocument()
  commit()
  terms()
  hasDeletions()
  delete()
  undeleteAll()


Classe: Zend_Search_Lucene  - X-Ref


__construct($directory = null, $create = false)   X-Ref
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.

param: mixed $directory

__destruct()   X-Ref
Object destructor


getIndexWriter()   X-Ref
Returns an instance of Zend_Search_Lucene_Index_Writer for the index

return: Zend_Search_Lucene_Index_Writer

getDirectory()   X-Ref
Returns the Zend_Search_Lucene_Storage_Directory instance for this index.

return: Zend_Search_Lucene_Storage_Directory

count()   X-Ref
Returns the total number of documents in this index.

return: integer

find($query)   X-Ref
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.

param: mixed $query
return: array ZSearchHit

getFieldNames($indexed = false)   X-Ref
Returns a list of all unique field names that exist in this index.

param: boolean $indexed
return: array

getDocument($id)   X-Ref
Returns a Zend_Search_Lucene_Document object for the document
number $id in this index.

param: integer|Zend_Search_Lucene_Search_QueryHit $id
return: Zend_Search_Lucene_Document

termDocs(Zend_Search_Lucene_Index_Term $term)   X-Ref
Returns an array of all the documents which contain term.

param: Zend_Search_Lucene_Index_Term $term
return: array

termPositions(Zend_Search_Lucene_Index_Term $term)   X-Ref
Returns an array of all term positions in the documents.
Return array structure: array( docId => array( pos1, pos2, ...), ...)

param: Zend_Search_Lucene_Index_Term $term
return: array

docFreq(Zend_Search_Lucene_Index_Term $term)   X-Ref
Returns the number of documents in this index containing the $term.

param: Zend_Search_Lucene_Index_Term $term
return: integer

getSimilarity()   X-Ref
Retrive similarity used by index reader

return: Zend_Search_Lucene_Search_Similarity

norm( $id, $fieldName )   X-Ref
Returns a normalization factor for "field, document" pair.

param: integer $id
param: string $fieldName
return: Zend_Search_Lucene_Document

addDocument(Zend_Search_Lucene_Document $document)   X-Ref
Adds a document to this index.

param: Zend_Search_Lucene_Document $document

commit()   X-Ref
Commit changes resulting from delete() or undeleteAll() operations.


terms()   X-Ref
Returns an array of all terms in this index.

return: array

hasDeletions()   X-Ref
Returns true if any documents have been deleted from this index.

return: boolean

delete($doc)   X-Ref
Deletes a document from the index.  $doc may contain a Zend_Search_Lucene_Document
or the number of the document to delete.

param: mixed $item_to_del

undeleteAll()   X-Ref
Undeletes all documents currently marked as deleted in this index.




Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7