Hi, I checked the documentation, checked the adefwebserver.com/DotNetNukeHELP/ISearchable/, I implemented the search in my module as described. But it's not working I don't know what I'm doing wrong :-(
If I update the module settings nothing is done, if I set the ISearchable code manual in the table modulesettings (2 or 3) it's not working. I can delete all records in searchtable and doing re-index, nothing. I don't get an error and cannot debug, as my code is ignored by DNN.
The ISearchable within my module is simply ignored by DNN, does somebody knows why?
Using DNN 3.3.7, her's an extraction of code:
Imports DotNetNuke.Services.Search
Public Class eCardsController
Implements Entities.Modules.ISearchable
#Region "Optional Interfaces"
Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As Services.Search.SearchItemInfoCollection Implements Entities.Modules.ISearchable.GetSearchItems
Dim SearchItemCollection As New SearchItemInfoCollection
Dim objEcardsController As New dsis_eCardsController
Dim Ecards As ArrayList = objEcardsController.GetAllEcardsByActiveAndModuleID(True, ModInfo.ModuleID)
Dim objEcard As Object
For Each objEcard In Ecards
Dim SearchItem As SearchItemInfo
With CType(objEcard, Ecards.dsis_eCardsInfo)
SearchItem = New SearchItemInfo(ModInfo.ModuleTitle & " - " & .Title, .Title, 0, .CreatedDate, ModInfo.ModuleID, .EcardID.ToString, "")
SearchItemCollection.Add(SearchItem)
End With
Next
Return SearchItemCollection
End Function
#End Region
Thank you for every advice :-)
Regards, Daniel