protected function _configIndex($repository, $request)
    {
        $client = $repository->connection();
        $indexTemplate = $repository->getName();
        $client->setConfig(['index' => sprintf($indexTemplate, '*')]);

        if ($request->query('at')) {
            $client->setConfig(['index' => sprintf($indexTemplate, (new DateTime($request->query('at')))->format('-Y.m.d'))]);
        }
    }