Keyoti SearchUnit API Docs
ImportFileSystemFolder Method (localFolderPath, virtualPath, targetMatchList, ignoreMatchList, recurseSubFolders)
API DocumentationKeyoti.SearchEngine.IndexDocumentIndexImportFileSystemFolder(String, String, ArrayList, ArrayList, Boolean)
Keyoti SearchUnit v6
Convenience method to import documents from a virtual folder using the Import method.
Declaration Syntax
C#C#Visual BasicVisual BasicVisual C++Visual C++F#F#
public ArrayList ImportFileSystemFolder(
	string localFolderPath,
	string virtualPath,
	ArrayList targetMatchList,
	ArrayList ignoreMatchList,
	bool recurseSubFolders
)
public ArrayList ImportFileSystemFolder(
	string localFolderPath,
	string virtualPath,
	ArrayList targetMatchList,
	ArrayList ignoreMatchList,
	bool recurseSubFolders
)
Public Function ImportFileSystemFolder ( 
	localFolderPath As String,
	virtualPath As String,
	targetMatchList As ArrayList,
	ignoreMatchList As ArrayList,
	recurseSubFolders As Boolean
) As ArrayList
Public Function ImportFileSystemFolder ( 
	localFolderPath As String,
	virtualPath As String,
	targetMatchList As ArrayList,
	ignoreMatchList As ArrayList,
	recurseSubFolders As Boolean
) As ArrayList
public:
ArrayList^ ImportFileSystemFolder(
	String^ localFolderPath, 
	String^ virtualPath, 
	ArrayList^ targetMatchList, 
	ArrayList^ ignoreMatchList, 
	bool recurseSubFolders
)
public:
ArrayList^ ImportFileSystemFolder(
	String^ localFolderPath, 
	String^ virtualPath, 
	ArrayList^ targetMatchList, 
	ArrayList^ ignoreMatchList, 
	bool recurseSubFolders
)
member ImportFileSystemFolder : 
        localFolderPath : string * 
        virtualPath : string * 
        targetMatchList : ArrayList * 
        ignoreMatchList : ArrayList * 
        recurseSubFolders : bool -> ArrayList 
member ImportFileSystemFolder : 
        localFolderPath : string * 
        virtualPath : string * 
        targetMatchList : ArrayList * 
        ignoreMatchList : ArrayList * 
        recurseSubFolders : bool -> ArrayList 
Parameters
localFolderPath (String)
Filepath of the virtual folder (or subfolder) to import documents from.
virtualPath (String)
URL corresponding to localFolderPath.
targetMatchList (ArrayList)
ArrayList of strings - if specified then only document paths matching one of these strings will be imported (useful for specifying filetypes, eg ".doc$" means file names ending with .doc). May be null/Nothing
ignoreMatchList (ArrayList)
ArrayList of strings - any document paths which match one of these strings will be ignored. May be null/Nothing
recurseSubFolders (Boolean)
Whether to recurse into subfolders looking for documents
Return Value
ArrayList
Returns list of Uri objects newly imported
Examples
If there is a virtual folder ("mywebsite") located at c:\inetpub\wwwroot\mywebsite, which is accessible via http://localhost/mywebsite and all PDF documents should be imported from that folder, then the import is done as.
 Copy imageCopy
match = new ArrayList();
match.Add(".pdf");
ImportFileSystemFolder(@"c:\inetpub\wwwroot\mywebsite", "http://localhost/mywebsite/", match, null, true);
Examples
If there is a virtual folder ("mywebsite") located at c:\inetpub\wwwroot\mywebsite, which is accessible via http://localhost/mywebsite and all documents should be imported from a folder at c:\inetpub\wwwroot\mywebsite\docs, then the import is done as.
 Copy imageCopy
ImportFileSystemFolder(@"c:\inetpub\wwwroot\mywebsite\docs", "http://localhost/mywebsite/docs/", null, null, true);

Assembly: Keyoti4.SearchEngine.Core (Module: Keyoti4.SearchEngine.Core.dll) Version: 2015.6.15.120