Close
dtSearch Engine API for .NET Framework 2.x-4.x 2024.01
IndexJob::FoldersToIndex Property

List of folders (or files) to index (add <+> after a folder name to include subfolders).

public System::Collections::Specialized::StringCollection FoldersToIndex;

Use FoldersToIndex to specify the folders that should be scanned to locate documents to be indexed. Add <+> after a folder name to include subfolders, like this: "c:\docs<+>". 

A file will be indexed if it matches one of the IncludeFilters and does not match any of the ExcludeFilters

Filenames can also be added to FoldersToIndex, so to add c:\docs\sample.doc to the index, add "c:\docs\sample.doc" to the FoldersToIndex collection (this is more efficient than adding "c:\docs" to FoldersToIndex and setting IncludeFilters to "sample.doc").