Get Friendly Display Name for the Search Result

Namespace: DotNetNuke.Services.Search.Internals
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
string GetSearchDocumentTypeDisplayName(
	SearchResult searchResult
)
Visual Basic
Function GetSearchDocumentTypeDisplayName ( 
	searchResult As SearchResult
) As String

Parameters

searchResult
Type: DotNetNuke.Services.Search.Entities..::..SearchResult
paramsearchResultM:DotNetNuke.Services.Search.Internals.IInternalSearchController.GetSearchDocumentTypeDisplayName(DotNetNuke.Services.Search.Entities.SearchResult)

Return Value

returnsM:DotNetNuke.Services.Search.Internals.IInternalSearchController.GetSearchDocumentTypeDisplayName(DotNetNuke.Services.Search.Entities.SearchResult)

Remarks

SearchTypeId is used primarily to obtain this value. Multiple SearchTypeId can map to same Display Name, e.g. Tab, Module, Html/Module all map to Pages. For SearchTypeId=module, ModuleDefitionId is also used. Module's display name is used unless an entry is found in ~/DesktopModules/Admin/SearchResults/App_LocalResources/SearchableModules.resx for the Module_[MODULENAME].txt is found.

See Also