Class BaseResultController
BaseResult to be implemented by the different Crawlers to provide Permission and Url Services.
Inheritance
System.Object
BaseResultController
Namespace: DotNetNuke.Services.Search.Controllers
Assembly: DotNetNuke.dll
Syntax
public abstract class BaseResultController : object
Remarks
The abstract methods in this Class will be called by Search Result engine for every Hit found in Search Index.
Properties
| Improve this Doc View SourceLocalizedSearchTypeName
Gets the localized search type name.
Declaration
public virtual string LocalizedSearchTypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The abstract methods in this Class will be called by Search Result engine for every Hit found in Search Index.
Methods
| Improve this Doc View SourceGetDocUrl(SearchResult)
Return a Url that can be shown in search results.
Declaration
public abstract string GetDocUrl(SearchResult searchResult)
Parameters
Type | Name | Description |
---|---|---|
SearchResult | searchResult | Search Result. |
Returns
Type | Description |
---|---|
System.String | Url. |
Remarks
The Query Strings in the Document (if present) should be appended while returning the Url.
HasViewPermission(SearchResult)
Does the user in the Context have View Permission on the Document.
Declaration
public abstract bool HasViewPermission(SearchResult searchResult)
Parameters
Type | Name | Description |
---|---|---|
SearchResult | searchResult | Search Result. |
Returns
Type | Description |
---|---|
System.Boolean | True or False. |
Remarks
The abstract methods in this Class will be called by Search Result engine for every Hit found in Search Index.