StringOutputAdapter Class |
Namespace: GroupDocs.Search.Common
The StringOutputAdapter type exposes the following members.
Name | Description | |
---|---|---|
![]() | StringOutputAdapter |
Initializes a new instance of the StringOutputAdapter class.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetResult |
Gets the resulting string.
|
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
string indexFolder = @"c:\MyIndex\"; string documentsFolder = @"c:\MyDocuments\"; Index index = new Index(indexFolder); // Creating an index in the specified folder index.Add(documentsFolder); // Indexing documents from the specified folder DocumentInfo[] documents = index.GetIndexedDocuments(); // Getting information on indexed documents StringOutputAdapter adapter = new StringOutputAdapter(); // Creating a string output adapter index.GetDocumentText(documents[0], adapter); // Generating a document text into the adapter String result = adapter.GetResult(); // Getting a result