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#Visual Basic
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
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: 2022.8.22.610