I added this method to the indexer file on my version for removing a document.
/**
* Removes the document from the collection based upon on the assigned
* id of the document.
*
* @param string $document_id The id of the documentID to be removed from the collection
* @param array $options An array of options that can be used to customize the removel process
*
* @return mixed $removed Returns either a boolean or an array based upon past options
* @access public
* @todo Figure out how to remove tokenChunks, if neccesary
*/
public function removeDocument($document_id, array $options = array()) {
$collection = $this->collection;
$conditions = array('documentID' => $document_id);
return $this->MongoDBH->$collection-> remove ($conditions, $options);
}
$indexer = new MongoLanternIndexer();
$indexer->indexName = 'Images';
$indexer->Connect(PVDatabase::getDatabaseLink());
return $indexer-> removeDocument( $this -> lantern_id );