SilverStripe\FullTextSearch\Solr\SolrIndex::clearObsoleteClasses
Clear all records which do not match the given classname whitelist.
Can also be used to trim an index when reducing to a narrower set of classes. Ignores current state / variant.
Signature
public function clearObsoleteClasses(array
$classes )
Parameters
$classes
— array- List of non-obsolete classes in the same format as SolrIndex::getClasses()
Returns
- bool
- Flag if successful