@T["Found {0} result(s) in {1} ms", Model.Count.ToString(), Model.Elapsed.TotalMilliseconds.ToString()]
} -@if (Model.Documents.Any() || Model.Fields.Any()) + +@if (hasDocuments || hasFields) { } -@if (Model.Documents.Any()) + +@if (hasDocuments) { - var fieldNames = Model.Documents.SelectMany(d => d.Keys.Distinct()).Distinct().ToList(); + var fieldNames = Model.Documents.SelectMany(d => JsonSerializer.Deserialize@T["The results displayed in this table are coming from the _source data."]
@@ -86,9 +92,16 @@ {@T["The results displayed in this table are coming from the field(s) data."]
@@ -119,27 +132,30 @@ @{ int row = 1; } - @foreach (var hit in Model.Fields) + @foreach (var field in Model.Fields) {