Пример #1
0
        public ElasticResult <bool> Remove <T>(string esType, string guid) where T : class
        {
            var documentPath = new DocumentPath <T>(guid).Index(_elasticRepository.EsIndex).Type(esType);
            var response     = _elasticRepository.ExecuteDeleteRequest(documentPath);

            return(response.Success
                ? ElasticResult <bool> .SuccessResult(true)
                : ElasticResult <bool> .FailResult(response.Message));
        }