The example demonstrates a typical usage of the class.
stringindexFolder=@"c:\MyIndex\";stringdocumentsFolder=@"c:\MyDocuments\";// Creating an index in the specified folderIndexindex=newIndex(indexFolder);// Indexing documents from the specified folderindex.Add(documentsFolder);// Searching in indexSearchResultresult1=index.Search("Einstein");SearchResultresult2=index.Search("\"Theory of Relativity\"");// Getting search reportsSearchReport[]reports=index.GetSearchReports();// Printing reports to the consoleforeach(SearchReportreportinreports){Console.WriteLine("Query: "+report.TextQuery);Console.WriteLine("Time: "+report.StartTime);Console.WriteLine("Duration: "+report.SearchDuration);Console.WriteLine("Documents: "+report.DocumentCount);Console.WriteLine("Occurrences: "+report.OccurrenceCount);Console.WriteLine();}