Skip to content

Commit

Permalink
FIX Use correct API for unindex
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Nyeholt committed Oct 18, 2016
1 parent 44b16f6 commit 4ee5427
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/model/SolrResultSet.php
Expand Up @@ -193,7 +193,10 @@ public function getDataObjects($evaluatePermissions=false, $expandRawObjects = t
$totalAdded++;
} else {
error_log("Object $doc->id is no longer in the system, removing from index");
$this->solr->unindex($type, $id);
$tmpObj = new stdClass();
$tmpObj->class = $type;
$tmpObj->ID = $id;
$this->solr->unindex($tmpObj);
}
}
$this->totalResults = $documents->numFound;
Expand Down

0 comments on commit 4ee5427

Please sign in to comment.