/** * Delete document for model from index. * * @param Model $model */ public function delete(Model $model) { list($uidName, $uidValue) = $this->config->classUidPair($model); list($pkName, $pkValue) = $this->config->primaryKeyPair($model); $this->index()->del($uidValue . '_' . $pkValue); // delete document from index by ID of hit. }