Keyoti SearchUnit API Docs
ImportDatabase Method (sourceType, connectionString, sqlQuery, uniqueColumnName, resultUrlFormat)
API DocumentationKeyoti.SearchEngine.IndexDocumentIndexImportDatabase(SourceType, String, String, String, String)
Keyoti SearchUnit v6
Convenience method to import data from a database using the Import method.
Declaration Syntax
C#C#Visual BasicVisual BasicVisual C++Visual C++F#F#
public ArrayList ImportDatabase(
	SourceType sourceType,
	string connectionString,
	string sqlQuery,
	string uniqueColumnName,
	string resultUrlFormat
)
public ArrayList ImportDatabase(
	SourceType sourceType,
	string connectionString,
	string sqlQuery,
	string uniqueColumnName,
	string resultUrlFormat
)
Public Function ImportDatabase ( 
	sourceType As SourceType,
	connectionString As String,
	sqlQuery As String,
	uniqueColumnName As String,
	resultUrlFormat As String
) As ArrayList
Public Function ImportDatabase ( 
	sourceType As SourceType,
	connectionString As String,
	sqlQuery As String,
	uniqueColumnName As String,
	resultUrlFormat As String
) As ArrayList
public:
ArrayList^ ImportDatabase(
	SourceType sourceType, 
	String^ connectionString, 
	String^ sqlQuery, 
	String^ uniqueColumnName, 
	String^ resultUrlFormat
)
public:
ArrayList^ ImportDatabase(
	SourceType sourceType, 
	String^ connectionString, 
	String^ sqlQuery, 
	String^ uniqueColumnName, 
	String^ resultUrlFormat
)
member ImportDatabase : 
        sourceType : SourceType * 
        connectionString : string * 
        sqlQuery : string * 
        uniqueColumnName : string * 
        resultUrlFormat : string -> ArrayList 
member ImportDatabase : 
        sourceType : SourceType * 
        connectionString : string * 
        sqlQuery : string * 
        uniqueColumnName : string * 
        resultUrlFormat : string -> ArrayList 
Parameters
sourceType (SourceType)
The SourceType specifying the database type
connectionString (String)
Connection string for DB
sqlQuery (String)
The SQL query returning the data to index
uniqueColumnName (String)
The name of the column which uniquely identifies a row (eg. primary key)
resultUrlFormat (String)
The format string for the result URLs.
Return Value
ArrayList
Returns list of Uri objects newly imported
Remarks
The Help has much more information in the importing section, regarding databases imports.

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