SilverStripe\FullTextSearch\Solr\Reindex\Handlers\SolrReindexBase::clearRecords
Clear all records of the given class in the current state ONLY.
Optionally delete from a given group (where the group is defined as the ID % total groups)
Signature
protected function clearRecords(SolrIndex
$indexInstance,
string
$class,
[int
$groups = NULL,
[int
$group = NULL]] )
Parameters
$indexInstance
— SilverStripe\FullTextSearch\Solr\SolrIndex- Index instance
$class
— string- Class name
$groups
— int- Number of groups, if clearing from a striped group
$group
— int- Group number, if clearing from a striped group