SearchReport class

SearchReport class

Represents detailed information on a search operation.

Learn more:

The SearchReport type exposes the following members:

Methods

Method Description
to_string Returns a string that represents the current SearchReport.

Properties

Property Description
document_count The number of documents found.
end_time The end time of the search.
object_query The search query in object form.
occurrence_count The total number of occurrences found.
search_duration The search duration.
search_options The search options.
start_time The start time of the search.
text_query The search query in text form.

Example

from groupdocs.search import Index

index = Index("./index")
index.add("./documents")
index.search("contract")
for report in index.get_search_reports():
    print(report.text_query, report.document_count)

See Also