Base Types
{{ $biMap := .Indices.Base }}
{{ if eq .Indices.Base.BaseRead.Index .Indices.Base.BaseWrite.Index }}
{{ $biMap = (Map "BaseRead" .Indices.Base.BaseRead) }}
{{ end }}
{{ $btMap := (Map "Stats" .Stats.BaseTypes "Name" "Base Type" "Indices" $biMap) }}
{{ template "type_stats_table" $btMap }}
User Object Types
{{ $oiMap := .Indices.Object }}
{{ if eq .Indices.Object.ObjectRead.Index .Indices.Object.ObjectWrite.Index }}
{{ $oiMap = (Map "ObjectRead" .Indices.Object.ObjectRead) }}
{{ end }}
{{ $uoMap := (Map "Stats" .Stats.ObjectTypes "Name" "Object Type" "Indices" $oiMap) }}
{{ template "type_stats_table" $uoMap }}
Indices
{{ template "indices_stats_table" .Stats.IndicesStats }}
Files
{{ template "file_stats_table" .Stats.FileStats }}
Misc
Total not indexed: {{ .Stats.TotalNotIndexed }}
Pending files: {{ .Stats.PendingFilesCount }}
{{ define "type_stats_table" }}