コード例 #1
0
        public void DeleteIndex(string indexName)
        {
            var result = _client.DeleteIndex(indexName, string.Empty);

            if (result == null || !result.Acknowledged)
            {
                var msg = $"Unable to delete Index {indexName}";
                _logger.Error(result.OriginalException, msg);
            }
        }