Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ISearchable issueISearchable issue
Previous
 
Next
New Post
8/8/2007 10:43 AM
 

I've put in the function GetSearchItems along with the  Implements Entities.Modules.ISearchable  in my app and reloaded the module.  Verified that the search service ran again.  But no entry for my module.  It also left the setting Searchable on - which before on the search service running it was then taken off.  So, something different definitely happend.

By: You then need update the module definition to include the name of the class you just created. do you mean adding the function or am I missing something else?

Your help is very much appreciated.

 
New Post
10/5/2007 7:34 PM
 

I've tried 3 different ways of creating the GetSearchItems function:

  1. from the Survey iSearchable tutorial referenced in these forums
  2. modify the canned script that is created when generating a new dnn module
  3. modifying the Text/HTML function

Everything looks okay with all three of the functions.

During testing:

  • The module definition has "Searchable" checked.
  • The function (no matter which version I use) clears syntax and semantic checks. (no squiggly lines)
  • I've checked and double-checked  my namespace (changed to SC from YourCompany)
  • I've made the manual update to the DesktopModules table where SupportedFeatures is set to 3.
  • I've confirmed the businesslayercontroller name (when I don't have the right name, the "Searchable" definition parameter is unchecked)
  • I've updated the definition on each new test
  • I've updated and re-indexed the search as Host on each new test
  • I've cleared the test module and all associated data and added it back in at appropriate times
  • No errors are logged
  • The SearchItems table does not include a row for my module (when there is a module added to a page with data)
  • The only parameter that I've been unsure about is the PubDate and I've used a wide variety of data to pass (see below for some examples)

Nothing. No results. Code below

         Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As DotNetNuke.Services.Search.SearchItemInfoCollection Implements Entities.Modules.ISearchable.GetSearchItems

            '''''''''''''''------------ Function version 1 - based on canned code when generating new dnn module
            'Dim SearchItemCollection As New SearchItemInfoCollection

            'Dim ProductDetails As ProductDetailsInfo = SC.Modules.ProductDetails.DataProvider.Instance.SC_ProductDetails_GetAll(ModInfo.ModuleID)
            'Dim SearchItem As SearchItemInfo = New SearchItemInfo(ModInfo.ModuleTitle, ProductDetails.Title & " - " & ProductDetails.Description, 1, Date.Parse(Now), ModInfo.ModuleID, "", ProductDetails.Title & " - " & ProductDetails.Description, "", Null.NullInteger)
            'SearchItemCollection.Add(SearchItem)
            'Return SearchItemCollection


            '''''''''''''''------------ Function version 2 - based on Text/HTML module (with obvious modifications)
            'Dim SearchItemCollection As New DotNetNuke.Services.Search.SearchItemInfoCollection

            'Dim colProductDetails As List(Of ProductDetailsInfo) = ProductDetails_GetAll(ModInfo.ModuleID)
            'Dim objProductDetails As ProductDetailsInfo
            'For Each objProductDetails In colProductDetails
            '    Dim SearchItem As SearchItemInfo = New SearchItemInfo(ModInfo.ModuleTitle, objProductDetails.Title & " - " & objProductDetails.Description, 1, Date.Parse("9/28/2007 8:58:56 AM"), ModInfo.ModuleID, objProductDetails.ID.ToString, objProductDetails.Description, "ItemId=" & objProductDetails.ID.ToString)
            '    SearchItemCollection.Add(SearchItem)
            'Next

            'Return SearchItemCollection


            '''''''''''''''------------ Function version 3 - based on iSearchable tutorial
            ' Get the Surveys for this Module instance
            Dim colProductDetails As List(Of ProductDetailsInfo) = ProductDetails_GetAll(ModInfo.ModuleID)
            Dim SearchItemCollection As New SearchItemInfoCollection
            Dim ProductDetailsInfo As ProductDetailsInfo

            For Each ProductDetailsInfo In colProductDetails
                Dim SearchItem As SearchItemInfo
                SearchItem = New SearchItemInfo _
                (ModInfo.ModuleTitle, _
                ProductDetailsInfo.Title, _
                1, _
                Date.Now(), _
                ModInfo.ModuleID, _
                ProductDetailsInfo.ID, _
                ProductDetailsInfo.Title & " - " & ProductDetailsInfo.Description)
                SearchItemCollection.Add(SearchItem)
            Next
            Return SearchItemCollection

 

        End Function

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ISearchable issueISearchable issue


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out