public ElasticSearchStore(IOptions <ElasticSearchStoreOptions> options, ILogger <ElasticSearchStore> logger, IElasticsearchSerializer serializer)
        {
            _options = options.Value;
            _logger  = logger;

            var pool       = new SingleNodeConnectionPool(new Uri(_options.Url));
            var connection = new HttpConnection();
            var connectionConfiguration = new ConnectionConfiguration(pool, connection, serializer);

            _client = new ElasticLowLevelClient(connectionConfiguration);
        }
 public ElasticSearchSerializer(IOptions <ElasticSearchStoreOptions> options)
 {
     _options = options.Value;
 }