public function remove($record, $stage = 'Stage') {
		$index = $this->getIndex();
		$type = $index->getType($record->getElasticaType());

        try {
            $type->deleteDocument($record->getElasticaDocument($stage));
        } catch (\Exception $ex) {
            \SS_Log::log($ex, \SS_Log::WARN);
            return false;
        }
        
        return true;
	}
public function remove($record, $stage = 'Stage') {
		$index = $this->getIndex();
		$type = $index->getType($record->getElasticaType());

        try {
            $type->deleteDocument($record->getElasticaDocument($stage));
        } catch (\Exception $ex) {
            \SS_Log::log($ex, \SS_Log::WARN);
            return false;
        }
        
        return true;
	}
public function remove ( $ record , $ stage = 'Stage' ) { $ index = $ this -> getIndex ( ) ; $ type = $ index -> getType ( $ record -> getElasticaType ( ) ) ; try { $ type -> deleteDocument ( $ record -> getElasticaDocument ( $ stage ) ) ; } catch ( \ Exception $ ex ) { \ SS_Log :: log ( $ ex , \ SS_Log :: WARN ) ; return false ; } return true ; }
Deletes a record from the index.

@param Searchable $record
Deletes a record from the index .