public async Task OnGetAsync()
        {
            var indexStatus = await _searchProviderIndex.GetIndexStatus().ConfigureAwait(false);

            IndexExists   = indexStatus.Exists;
            DocumentCount = indexStatus.DocumentCount;
        }
        public async Task <IndexStatus> IndexStatus()
        {
            var indexStatus = await _searchProviderIndex.GetIndexStatus().ConfigureAwait(false);

            return(new IndexStatus
            {
                IndexExists = indexStatus.Exists,
                DocumentCount = indexStatus.DocumentCount
            });
        }