updateDocumentIndexes() public method

Indexes that exist in MongoDB but not the document metadata will be deleted.
public updateDocumentIndexes ( string $documentName, integer $timeout = null )
$documentName string
$timeout integer Timeout (ms) for acknowledged index creation
Example #1
0
 /**
  * @param SchemaManager $sm
  * @param object $document
  */
 protected function processDocumentIndex(SchemaManager $sm, $document)
 {
     $sm->updateDocumentIndexes($document, $this->timeout);
 }