IndexingReport Class
Represents a detailed information on an indexing operation.
Inheritance Hierarchy
SystemObject
  GroupDocs.Search.CommonIndexingReport

Namespace: GroupDocs.Search.Common
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 20.8
Syntax
public class IndexingReport

The IndexingReport type exposes the following members.

Properties
  NameDescription
Public propertyEndTime
Gets the indexing end time.
Public propertyErrors
Gets the list of errors.
Public propertyIndexedDocuments
Gets the list of indexed documents.
Public propertyIndexedDocumentsSize
Gets the total length of indexed documents in MB.
Public propertyIndexingTime
Gets the indexing duration.
Public propertyRemovedDocuments
Gets the list of removed from index documents.
Public propertySegmentCount
Gets the number of index segments.
Public propertyStartTime
Gets the indexing start time.
Public propertyTotalDocumentsInIndex
Gets the total number of documents in the index.
Public propertyTotalIndexSize
Gets the total index size in bytes.
Public propertyTotalTermCount
Gets the total number of terms in index.
Public propertyUpdatedDocuments
Gets the list of updated documents.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Remarks
Examples
The example demonstrates a typical usage of the class.
C#
string indexFolder = @"c:\MyIndex\";
string documentsFolder1 = @"c:\MyDocuments1\";
string documentsFolder2 = @"c:\MyDocuments2\";

// Creating an index in the specified folder
Index index = new Index(indexFolder);

// Indexing documents
index.Add(documentsFolder1);
index.Add(documentsFolder2);

// Getting indexing reports
IndexingReport[] reports = index.GetIndexingReports();

// Printing reports to the console
foreach (IndexingReport report in reports)
{
    Console.WriteLine("Time: " + report.StartTime);
    Console.WriteLine("Duration: " + report.IndexingTime);
    Console.WriteLine("Documents total: " + report.TotalDocumentsInIndex);
    Console.WriteLine("Terms total: " + report.TotalTermCount);
    Console.WriteLine("Indexed documents size (MB): " + report.IndexedDocumentsSize);
    Console.WriteLine("Index size (MB): " + (report.TotalIndexSize / 1024.0 / 1024.0));
    Console.WriteLine();
}
See Also