/**
  * Truncate the fixture type.
  *
  * @param \Cake\Datasource\ConnectionInterface $db The Elasticsearch connection
  * @return void
  */
 public function truncate(ConnectionInterface $db)
 {
     $query = new MatchAll();
     $index = $db->getIndex();
     $type = $index->getType($this->table);
     $type->deleteByQuery($query);
     $index->refresh();
 }