private void FillHealthStatus(LuceneIndexHealthStatus healthStatus)
        {
            healthStatus.IndexID     = _id;
            healthStatus.Initialized = _initialized;
            healthStatus.ShutDown    = _shutDown;

            healthStatus.NumberOfErrors = _writerErrors.Count + _searcherErrors.Count;

            healthStatus.IndexSearcherLastUsedTimeUtc = IndexSearcherLastUsedTimeUtc;
            healthStatus.IndexWriterLastUsedTimeUtc   = IndexWriterLastUsedTimeUtc;
            healthStatus.LastCommitTimeUtc            = LastCommitTimeUtc;
            healthStatus.LastOptimizationTimeUtc      = LastOptimizationTimeUtc;
        }
        internal LuceneIndexHealthStatus GetHealthStatus()
        {
            try
            {
                EnsureInitialized();
            }
            catch (Exception e)
            {
                Log.WarnFormat("IDX[{0}] Error during index initialization: {1}", _id, e.Message);
            }

            var result = new LuceneIndexHealthStatus();

            FillHealthStatus(result);
            return(result);
        }