midcom_services_indexerThis class is the main access point into the MidCOM Indexer subsystem.
It allows you to maintain and query the MidCOM document index.
Do not instantinate this class directly. Instead use the get_service method on midcom_application using the service name 'indexer' to obtain a running instance. You must honor the reference of that call.
Located in /midcom/services/indexer.php (line 45)
midcom_services_indexer_backend
$_backend
= null (line 53)
The backend indexer implementation
bool
$_disabled
= false (line 61)
Flag for disabled indexing, set by the constructor.
Initialization
The constructor will initialize the indexer backend using the MidCOM configuration by default. If you need a different indexer backend, you can always explicitly instantinate a backend and pass it ot the constructor. In that case you have to load the corresponding PHP file manually.
Removes the document with the given resource identifier from the index.
Clear the index completly.
This will drop the current index.
Adds a document to the index.
A finished document object must be passed to this object. If the index already contains a record with the same Resource Identifier, the record is replaced.
Support of batch-indexing using an Array of documents instead of a single document is possible (and strongly advised for performance reasons).
This function tries to instantinate the most specific document class for the object given in the parameter.
This class will not return empty document base class instances if nothing specific can be found. If you are in this situation, you need to instantinate an appropriate document manually and populate it.
The checking sequence is like this right now:
Query the index and, if set, restrict the query by a given filter.
The filter argument is optional and may be a subclass of indexer_filter. The backend determines what filters are supported and how they are treated.
The query syntax is also dependant on the backend. Refer to its documentation how queries should be built.
Each result node is looked up in NAP/Metadata to verify its visibility.
Documentation generated on Mon, 21 Nov 2005 18:16:25 +0100 by phpDocumentor 1.3.0RC3