IndexGetIndexedDocuments Method
Gets an array of all indexed documents.

Namespace: GroupDocs.Search
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 20.6
Syntax
public DocumentInfo[] GetIndexedDocuments()

Return Value

Type: DocumentInfo
An array of all indexed documents.
Examples
The example demonstrates how to get a list of indexed documents from an index.
C#
string indexFolder = @"c:\MyIndex\";
string documentsFolder = @"c:\MyDocuments\";

// Creating an index in the specified folder
Index index = new Index(indexFolder);

// Indexing documents from the specified folder
index.Add(documentsFolder);

// Getting list of indexed documents
DocumentInfo[] documents = index.GetIndexedDocuments();
See Also