GetSearchReports

Index.GetSearchReports method

Gets the reports on search operations.

public SearchReport[] GetSearchReports()

Return Value

The search reports.

Examples

The example demonstrates how to get search reports.

string indexFolder = @"c:\MyIndex\";
string documentsFolder = @"c:\MyDocuments\";
string query1 = "Einstein";
string query2 = "Newton";

Index index = new Index(indexFolder); // Creating index in the specified folder
index.Add(documentsFolder); // Indexing documents from the specified folder

SearchResult result1 = index.Search(query1); // Searching
SearchResult result2 = index.Search(query2);
SearchResult result3 = index.Search(query1 + " & " + query2);

SearchReport[] reports = index.GetSearchReports(); // Getting search reports

See Also