GetIndexedDocuments

Index.GetIndexedDocuments method

Gets an array of all indexed documents.

public DocumentInfo[] GetIndexedDocuments()

Return Value

An array of all indexed documents.

Examples

The example demonstrates how to get a list of indexed documents from an index.

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