We have a custom Product Detailed View module which will retrieve product data when a query string in the URL contains a certain SKU and navigated from the product filter module page. When the Detailed Product View module loads, it will check for a query string and load the data via Ajax.
I want to integrate DNN's SearchModuleBase so that the custom modules data will show in our custom Search Results module.
I have looked at the SearchModuleBase Wiki and Introduction: http://www.dnnsoftware.com/wiki/modulesearchbase
How can I specify the exact content I want DNN's crawler to index? For example: SKU, Page Title, Product Description?
I would also like to know how you can submit Meta Keywords from the product Object as Tags in the code-behind which can be used for search results?
All the sites I have looked at uses the old ISearchable class: http://www.adefwebserver.com/dotnetnukehelp/ISearchable/
This is the current code I have, but I think it is too basic and does not specify the Product Description, SKU and the Page Title:
public class ProductDetailedViewModuleBase : ModuleSearchBase
{
public override IList<SearchDocument> GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDateUtc)
{
throw new NotImplementedException();
}
}
I have changed the manifest file to be searchable. I had to change ISearchable, IPortable and IUpgradeable to Searchable, Portable and Upgradeable.
I am also trying to add the SearchModuleBase but I am missing something: