Class SmartSearchDataProvider<T>
- Namespace
- Dynamicweb.SmartSearch.DataProviders
- Assembly
- Dynamicweb.SmartSearch.dll
A smart search data provider.
Inherit from ConfigurableAddIn class
[AddInName("Dynamicweb.Modules.Searching.SmartSearch")]
[AddInGroup("SmartSearchDataProvider")]
[AddInIgnore(true)]
[AddInDescription("Base smart search data provider")]
public class SmartSearchDataProvider<T> : BaseSmartSearchDataProvider, ICloneable where T : class
Type Parameters
T
- Inheritance
-
SmartSearchDataProvider<T>
- Implements
- Inherited Members
Constructors
SmartSearchDataProvider()
public SmartSearchDataProvider()
Methods
ExecuteQuery(int, SmartSearchRuleGroupCollection, params SmartSearchSortInfo[])
Executes the query.
public T ExecuteQuery(int ResultsLimit, SmartSearchRuleGroupCollection QueryRules, params SmartSearchSortInfo[] SortParams)
Parameters
ResultsLimit
int- The results limit.
QueryRules
SmartSearchRuleGroupCollection- The query rules.
SortParams
SmartSearchSortInfo[]- The sort params.
Returns
- T
ExecuteQuery(int, SmartSearchRulesGroupCollection, params SmartSearchSortInfo[])
Executes the query.
[Obsolete("Use ExecuteQuery")]
public T ExecuteQuery(int ResultsLimit, SmartSearchRulesGroupCollection QueryRules, params SmartSearchSortInfo[] SortParams)
Parameters
ResultsLimit
int- The results limit.
QueryRules
SmartSearchRulesGroupCollection- The query rules.
SortParams
SmartSearchSortInfo[]- The sort params.
Returns
- T
OnExecuteQuery(int, SmartSearchRuleGroupCollection, SmartSearchSortInfo[])
Called when execute smart search query.
protected virtual T OnExecuteQuery(int ResultsLimit, SmartSearchRuleGroupCollection QueryRules, SmartSearchSortInfo[] SortParams)
Parameters
ResultsLimit
int- The results limit.
QueryRules
SmartSearchRuleGroupCollection- The query rules.
SortParams
SmartSearchSortInfo[]- The sort params.
Returns
- T
OnExecuteQuery(int, SmartSearchRulesGroupCollection, SmartSearchSortInfo[])
Called when execute smart search query.
[Obsolete("Use OnExecuteQuery instead")]
protected virtual T OnExecuteQuery(int ResultsLimit, SmartSearchRulesGroupCollection QueryRules, SmartSearchSortInfo[] SortParams)
Parameters
ResultsLimit
int- The results limit.
QueryRules
SmartSearchRulesGroupCollection- The query rules.
SortParams
SmartSearchSortInfo[]- The sort params.
Returns
- T
OnGetEntityType()
Get entity type
protected override Type OnGetEntityType()