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/2/2007 9:33 AM
 

Hi,

i have installed DNN 4.5.3 starter kit and created a very simple custom module in C#, just to get my hands on.

I have implemented the ISearchable interface via the GetSearchItems function inside the <My Module>Controller.cs, as indicated to the site's documentation.

I have also added some contents inside my module that i would like to become 'searchable'.

I noticed that after providing the "search" text box with a value that exists inside my module contents, nothing is displayed on the search result page. Furthermore, when i insert a breakpoint inside the GetSearchItems function and press the "search" button, the code does not stop at the breakpoint.

Is there something i am doing wrong?

Any help would be welcomed. 

 

 
New Post
8/2/2007 11:27 AM
 

When you look at the module definitions page for your module do you see the ISearchable option checked?

When was the last time your search indexer ran? Your GetSearchItems function won't run until the search indexer runs, and the indexer won't run on the module if DNN doesn't know it implements ISearchable


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
8/3/2007 4:29 AM
 

Hi christoc,

thanx for your reply. I combined it with another post in order to come up with a solution.

The problem was that i hadn't figured out the search engine functional.

In short, The ISearchable::GetSearchItems implemented function is called only when you logon as the host, select the Search Admin menu item and cliclk on the Re-Index content command. Inside the GetSearchItems(), all the contents of my modules (that implement the ISearchable interface of course) are added to the search engine.

Note that, as a result, each time you add, edit or delete any content inside a module that supports the ISearchable interface, you have to Re-Index the content, in order for the search engine to be updated with the new search content items of your module.

 
New Post
8/7/2007 12:25 PM
 

we are working on bringing up a new version of dnn4.3.7 from dnn2.0 - I see on the module definitions an option for searchable but when logged in as Host (SuperUser) - it's not updatable.  It's just not selectable.  Is there a setting somewhere?  I've been searching but don't see any posts of the kinds.

Help!  thanks...

 
New Post
8/7/2007 8:24 PM
 

Have a look at the steps here to setup the Isearchable class in your modules business rules:

http://www.adefwebserver.com/DotNetNukeHELP/ISearchable/

You then need update the module definition to include the name of the class you just created.

And lastly yo uneed to manually update the DesktopModules table to set the features you support.

UPDATE DesktopModules SET SupportedFeatures = 3 WHERE FriendlyName = 'MyModuleName'

Westa

 
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