The example demonstrates a typical usage of the class.
stringindexFolder=@"c:\MyIndex\";stringdocumentsFolder=@"c:\MyDocuments\";// Creating an indexIndexindex=newIndex(indexFolder);// Indexing documents from the specified folderindex.Add(documentsFolder);// Search for the phase 'Theory of Relativity'SearchResultresult=index.Search("\"Theory of Relativity\"");// Highlighting found words in the text of a documentFoundDocumentdocument=result.GetFoundDocument(0);OutputAdapteroutputAdapter=newFileOutputAdapter(OutputFormat.Html,"Highlighted.html");Highlighterhighlighter=newDocumentHighlighter(outputAdapter);index.Highlight(document,highlighter);