public function createIndex($index = null)
    {
        if (!$this->elasticsearch->indices()->exists(['index' => $index['index']])) {
            return $this->elasticsearch->indices()->create($index);
        }
    }