Elasticsearch

    使用

    1. use Hyperf\Elasticsearch\ClientBuilderFactory;
    2. $builder = $this->container->get(ClientBuilderFactory::class)->create();
    3. $client = $builder->setHosts(['http://127.0.0.1:9200'])->build();
    4. $info = $client->info();