diff --git a/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticIndexManager.cs b/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticIndexManager.cs index 9dc12f29602..50dd0a6d1ee 100644 --- a/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticIndexManager.cs +++ b/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticIndexManager.cs @@ -277,6 +277,11 @@ public async Task GetIndexMappings(string indexName) { var response = await _elasticClient.LowLevel.Indices.GetMappingAsync(GetFullIndexName(indexName)); + if (!response.Success) + { + _logger.LogWarning("There were issues retrieving index mappings from Elasticsearch. {OriginalException}", response.OriginalException); + } + return response.Body; } @@ -333,7 +338,7 @@ public async Task DeleteDocumentsAsync(string indexName, IEnumerable