public void OnDocumentsIndexed(IEnumerable <Document> documents, Analyzer searchAnalyzer) { var indexingPerformanceStats = new IndexingPerformanceStats { Operation = _operationText, Started = SystemTime.UtcNow }; _indexInstance.AddindexingPerformanceStat(indexingPerformanceStats); var sp = Stopwatch.StartNew(); var enumerableDictionary = new EnumerableDictionary(documents, field, searchAnalyzer); spellChecker.IndexDictionary(enumerableDictionary, workContext.CancellationToken); indexingPerformanceStats.Duration = sp.Elapsed; indexingPerformanceStats.InputCount = enumerableDictionary.NumberOfDocuments; indexingPerformanceStats.ItemsCount = enumerableDictionary.NumberOfTokens; indexingPerformanceStats.OutputCount = enumerableDictionary.NumberOfFields; }