Class SqlIndexBuilder
- Namespace
- Dynamicweb.Indexing.Builders
- Assembly
- Dynamicweb.Core.dll
Represents Sql Index Builder
- Inheritance
-
Sql
Index Builder
- Implements
- Inherited Members
Constructors
SqlIndexBuilder()
Initializes a new instance of the Sql
SqlIndexBuilder(IDictionary<string, string>)
Initializes a new instance of the Sql
Parameters
settings
IDictionary<string, string>The settings data.
Properties
Connection
Gets or sets the connection string to use if another database than Dynamicweb database is needed.
[AddInParameterGroup("SQL Index Builder Settings")]
[AddInParameter("Connection")]
[AddInLabel("Connection string")]
[AddInParameterEditor(typeof(TextParameterEditor), "Explanation=Specifies a connection string to use if another database than Dynamicweb database is needed")]
public string Connection { get; set; }
Property Value
CountQuery
Gets or sets the SQL count statement to execute to return the number of rows expected from the query of records to index.
[AddInParameterGroup("SQL Index Builder Settings")]
[AddInParameter("CountQuery")]
[AddInLabel("SQL count statement")]
[AddInParameterEditor(typeof(TextParameterEditor), "TextArea=true;Explanation=Specifies the SQL to execute to return the number of rows expected from the query of records to index")]
public string CountQuery { get; set; }
Property Value
DefaultSettings
Gets the default settings collection.
Property Value
Query
Gets or sets the SQL statement to execute and index the fields and rows returned from the query.
[AddInParameterGroup("SQL Index Builder Settings")]
[AddInParameter("Query")]
[AddInLabel("SQL statement")]
[AddInParameterEditor(typeof(TextParameterEditor), "TextArea=true;Explanation=Specifies the SQL to execute and index the fields and rows returned from the query")]
public string Query { get; set; }
Property Value
SupportedActions
List of supported actions
Property Value
UseStoredProcedure
Gets or sets a value indicating whether to use a stored procedure.
[AddInParameterGroup("SQL Index Builder Settings")]
[AddInParameter("UseStoredProcedure")]
[AddInLabel("Use stored procedure")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "Explanation=Schema extender fields are not set to analyzed by default;")]
public bool UseStoredProcedure { get; set; }
Property Value
Methods
Build(IIndexWriter, Tracker)
Builds the current SQL index.
Parameters
writer
IIndexWriter The index writer.
tracker
TrackerThe tracker.
GetFields()
Gets the index builder fields.
Returns
- IEnumerable<Field
Definition >Base The set of key-value pairs.