public function createClient()
    {
        $indexConfig = ArrayList::create(Config::config()->get('indices'))
            ->filter(['name' => $this->indexName])->first();

        $this->clientAPI   = new DataList($indexConfig['class']);
        $this->indexConfig = $indexConfig;

        return $this->clientAPI;
    }