IndexingReport class

IndexingReport class

Represents detailed information on an indexing operation.

Learn more:

The IndexingReport type exposes the following members:

Properties

Property Description
end_time The indexing end time.
errors The list of errors.
indexed_documents The list of indexed documents.
indexed_documents_size The total length of indexed documents in MB.
indexing_time The indexing duration.
removed_documents The list of documents removed from the index.
segment_count The number of index segments.
start_time The indexing start time.
total_documents_in_index The total number of documents in the index.
total_index_size The total index size in bytes.
total_term_count The total number of terms in index.
updated_documents The list of updated documents.

Example

from groupdocs.search import Index

index = Index("./index")
index.add("./documents")
# Perform indexing; reports are generated per batch
for report in index.get_indexing_reports():
    print(report.start_time)          # report.StartTime
    print(report.indexing_time)       # report.IndexingTime
    print(report.total_documents_in_index)  # report.TotalDocumentsInIndex
    print(report.total_term_count)    # report.TotalTermCount
    print(report.indexed_documents_size)    # report.IndexedDocumentsSize
    print(report.total_index_size / 1024.0 / 1024.0)  # size in MB

See Also