The example demonstrates a typical usage of the class.
stringindexFolder=@"c:\MyIndex\";stringdocumentsFolder=@"c:\MyDocuments\";Indexindex=newIndex(indexFolder);// Creating an index in the specified folderindex.Add(documentsFolder);// Indexing documents from the specified folderDocumentInfo[]documents=index.GetIndexedDocuments();// Getting information on indexed documentsusing(Streamstream=newMemoryStream())// Creating a stream{StreamOutputAdapteradapter=newStreamOutputAdapter(stream);// Creating a stream output adapterindex.GetDocumentText(documents[0],adapter);// Generating a document text into the stream}