public function onAfterDelete() {
        if (\Config::inst()->get('ElasticSearch', 'disabled')) {
            return;
        }
        
        $stage = \Versioned::current_stage();
		$this->service->remove($this->owner, $stage);
	}
public function onAfterDelete() {
        if (\Config::inst()->get('ElasticSearch', 'disabled')) {
            return;
        }
        
        $stage = \Versioned::current_stage();
		$this->service->remove($this->owner, $stage);
	}
public function onAfterDelete ( ) { if ( \ Config :: inst ( ) -> get ( 'ElasticSearch' , 'disabled' ) ) { return ; } $ stage = \ Versioned :: current_stage ( ) ; $ this -> service -> remove ( $ this -> owner , $ stage ) ; }
Removes the record from the search index.
Removes the record from the search index .