\Zend_Search_Lucene_Interface_MultiSearcher
Multisearcher allows to search through several independent indexes.
- Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Search_Lucene_Interface_MultiSearcher
implements
Zend_Search_Lucene_Interface
{
- // members
- protected $_indices;
- protected callback $_documentDistributorCallBack = NULL;
- private Zend_Search_Lucene_TermStreamsPriorityQueue $_termsStream = NULL;
- // methods
- public void __construct()
- public void addIndex()
- public static integer getActualGeneration()
- public static string getSegmentFileName()
- public integer getFormatVersion()
- public void setFormatVersion()
- public Zend_Search_Lucene_Storage_Directory getDirectory()
- public integer count()
- public integer maxDoc()
- public integer numDocs()
- public boolean isDeleted()
- public static void setDefaultSearchField()
- public static string getDefaultSearchField()
- public static void setResultSetLimit()
- public static integer getResultSetLimit()
- public integer getMaxBufferedDocs()
- public void setMaxBufferedDocs()
- public integer getMaxMergeDocs()
- public void setMaxMergeDocs()
- public integer getMergeFactor()
- public void setMergeFactor()
- public array find()
- public array getFieldNames()
- public Zend_Search_Lucene_Document getDocument()
- public boolean hasTerm()
- public array termDocs()
- public Zend_Search_Lucene_Index_DocsFilter termDocsFilter()
- public integer termFreqs()
- public array termPositions()
- public integer docFreq()
- public Zend_Search_Lucene_Search_Similarity getSimilarity()
- public float norm()
- public boolean hasDeletions()
- public void delete()
- public void setDocumentDistributorCallback()
- public callback getDocumentDistributorCallback()
- public void addDocument()
- public void commit()
- public void optimize()
- public array terms()
- public void resetTermsStream()
- public void skipTo()
- public Zend_Search_Lucene_Index_Term|null nextTerm()
- public Zend_Search_Lucene_Index_Term|null currentTerm()
- public void closeTermsStream()
- public void undeleteAll()
- public void addReference()
- public void removeReference()
Hierarchy
Implements
Tasks
Line | Task |
---|---|
481 | Implement advanced sorting |
Members
private
- $_termsStream
—
Zend_Search_Lucene_TermStreamsPriorityQueue
Terms stream priority queue object
protected
- $_documentDistributorCallBack
—
callback
Callback used to choose target index for new documents - $_indices
—
array
List of indices for searching.
Methods
public
- __construct() — Object constructor.
- addDocument() — Adds a document to this index.
- addIndex() — Add index for searching.
- addReference() — Add reference to the index object
- closeTermsStream() — Close terms stream
- commit() — Commit changes resulting from delete() or undeleteAll() operations.
- count() — Returns the total number of documents in this index (including deleted documents).
- currentTerm() — Returns term in current position
- delete() — Deletes a document from the index.
- docFreq() — Returns the number of documents in this index containing the $term.
- find() — Performs a query against the index and returns an array of Zend_Search_Lucene_Search_QueryHit objects.
- getActualGeneration() — Get current generation number
- getDefaultSearchField() — Get default search field.
- getDirectory() — Returns the Zend_Search_Lucene_Storage_Directory instance for this index.
- getDocument() — Returns a Zend_Search_Lucene_Document object for the document number $id in this index.
- getDocumentDistributorCallback() — Get callback for choosing target index.
- getFieldNames() — Returns a list of all unique field names that exist in this index.
- getFormatVersion() — Get index format version
- getMaxBufferedDocs() — Retrieve index maxBufferedDocs option
- getMaxMergeDocs() — Retrieve index maxMergeDocs option
- getMergeFactor() — Retrieve index mergeFactor option
- getResultSetLimit() — Set result set limit.
- getSegmentFileName() — Get segments file name
- getSimilarity() — Retrive similarity used by index reader
- hasDeletions() — Returns true if any documents have been deleted from this index.
- hasTerm() — Returns true if index contain documents with specified term.
- isDeleted() — Checks, that document is deleted
- maxDoc() — Returns one greater than the largest possible document number.
- nextTerm() — Scans terms dictionary and returns next term
- norm() — Returns a normalization factor for "field, document" pair.
- numDocs() — Returns the total number of non-deleted documents in this index.
- optimize() — Optimize index.
- removeReference() — Remove reference from the index object
- resetTermsStream() — Reset terms stream.
- setDefaultSearchField() — Set default search field.
- setDocumentDistributorCallback() — Set callback for choosing target index.
- setFormatVersion() — Set index format version.
- setMaxBufferedDocs() — Set index maxBufferedDocs option
- setMaxMergeDocs() — Set index maxMergeDocs option
- setMergeFactor() — Set index mergeFactor option
- setResultSetLimit() — Set result set limit.
- skipTo() — Skip terms stream up to specified term preffix.
- termDocs() — Returns IDs of all the documents containing term.
- termDocsFilter() — Returns documents filter for all documents containing term.
- termFreqs() — Returns an array of all term freqs.
- termPositions() — Returns an array of all term positions in the documents.
- terms() — Returns an array of all terms in this index.
- undeleteAll() — Undeletes all documents currently marked as deleted in this index.