Inbuilt Search Not working
Last Post 11/26/2011 2:19 PM by Joseph Craig. 10 Replies.
Author Messages
Ramesh Narasimhan
Nuke Active Member
Nuke Active Member
Posts:39


--
11/23/2011 8:43 AM
    What kind of text does the in-built search search..I've put text in an html module but it seldome works. How to make the search module work
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/23/2011 10:13 PM
    Go to the Search Results page to configure the Search module. You should also check the Host, Schedule page and make sure that the Search Indexer is running. It you have it set for a long time between runs (which is the recommended setting for productions systems) you may be entering text but not seeing it indexed immediately.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Ramesh Narasimhan
    Nuke Active Member
    Nuke Active Member
    Posts:39


    --
    11/24/2011 12:56 AM
    everytime i'm getting the following error .
    This module is hidden to regular users if there is no Search=xxx querystring parameter.
    Ramesh Narasimhan
    Nuke Active Member
    Nuke Active Member
    Posts:39


    --
    11/24/2011 1:43 AM
    I've placed few text in a new module which i created and trying t search the text within that module.

    Ramesh Narasimhan
    Nuke Active Member
    Nuke Active Member
    Posts:39


    --
    11/24/2011 2:44 AM
    I'v created a new module using .ascx control. When i go to host---------->Extensions and edit the module, I see "IsSearchable" is false and there is no way to make it true. Can i pls know how to make a new module contents searchable.
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/24/2011 7:29 AM
    The "This module is hidden ..." message is not really an error message. This appears on the Search Results page when you go to the page without a search. If you add a querystring Search, you will get a different message if there are no matches.

    ISearchable is an interface. Your module must implement ISearchable before items from instances of the module will be placed in the search results. Here is a nice explanation: http://adefwebserver.com/dotnetnuke...archable/.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    meard tony
    Nuke Newbie
    Nuke Newbie
    Posts:1


    --
    11/25/2011 4:31 AM
    content is not rattling an fault content. This appears on the Hunting Results writer when you go to the page without a see. If you add a querystring Activity, you give get a contrary message if there are no matches.


    Ramesh Narasimhan
    Nuke Active Member
    Nuke Active Member
    Posts:39


    --
    11/25/2011 7:20 AM
    How can i implement "Isearchable" interface
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/25/2011 7:33 AM
    Besides the link in my previous message, you can also look at http://www.dotnetnuke.com/Resources...able.aspx.

    The book by Mitchel Sellers on DotNetNuke Module Programming is a great resource.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Ramesh Narasimhan
    Nuke Active Member
    Nuke Active Member
    Posts:39


    --
    11/25/2011 8:16 AM
    My module is a simple .ASCX control and i want to search text placed in this control. Below is the piece of code i've placed

    public DotNetNuke.Services.Search.SearchItemInfoCollection GetSearchItems(DotNetNuke.Entities.Modules.ModuleInfo modInfo)

    {

    var searchItemCollection = new DotNetNuke.Services.Search.SearchItemInfoCollection();



    var searchItem = new DotNetNuke.Services.Search.SearchItemInfo("Apple","Apple", 1, DateTime.Now,10,"Apple", "Apple",10);

    searchItemCollection.Add(searchItem);



    return searchItemCollection;

    }

    I could'nt see any manifest files in the module folders. What should be the module ID field in DotNetNuke.Services.Search.SearchItemInfo. My search for the word "Apple" failed. The run time doesn't seems to be executing "GetSearchItems". Can u pls guide more on this. From where can i get the moduleID.

    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/26/2011 2:19 PM
    The ModuleId should be the id of this instance of the module. It is available if your module inherits the correct class.

    The iSearchable interface should be implemented in the controller class of the module.

    I assume your hard coded "Apple" is just for testing?

    Joe Craig, Patapsco Research Group
    Complete DNN Support


    ---