I have custom built a Press Releases module, and I am having trouble getting DNN to recognize it as searchable. When I install the module or update it, the "Is Searchable?" checkbox automatically unchecks. I have the following GetSearchItems method in my PressReleasesController.vb class. Is there something else I need to do to get DNN to recognize my module as Searchable?
Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As DotNetNuke.Services.Search.SearchItemInfoCollection Implements _
Entities.Modules.ISearchable.GetSearchItems
' Get the Surveys for this Module instance
Dim colPressReleases As List(Of PressReleasesInfo) = GetCurrentPressReleases(ModInfo.ModuleID)
Dim SearchItemCollection As New SearchItemInfoCollection
Dim PRInfo As PressReleasesInfo
For Each PRInfo In colPressReleases
Dim SearchItem As New SearchItemInfo(ModInfo.ModuleTitle & " - " & PRInfo.Title, PRInfo.Blurb, 1, PRInfo.ReleaseDate, PRInfo.ModuleId, PRInfo.EntryId.ToString, PRInfo.Content)
SearchItemCollection.Add(SearchItem)
Next
Return SearchItemCollection
End Function