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.0Problems with ISearchabeProblems with ISearchabe
Previous
 
Next
New Post
10/4/2007 8:18 AM
 

Hello,

I'm creating a module in C#. I've implemented the ISearchable interface. This is my code:

public class LMVGVideoController : ISearchable
{
………
public SearchItemInfoCollection GetSearchItems(ModuleInfo ModInfo)
        {   SearchItemInfoCollection SearchItemCollection = new SearchItemInfoCollection();
            List<LMVGVideoInfo> colVideoInfo = GetVideoList(ModInfo.ModuleID);
            string strDescription;
            string strContent;
            string strTitle;
 
            foreach (LMVGVideoInfo objVideoInfo in colVideoInfo)
            {
                strTitle = ModInfo.ModuleTitle + " - " + objVideoInfo.Title;
                strDescription = HtmlUtils.Shorten(HtmlUtils.Clean(System.Web.HttpUtility.HtmlDecode(objVideoInfo.Description), false), 100, "...");
                strContent = objVideoInfo.Title + " " +objVideoInfo.Description;
                SearchItemInfo SearchItem = new SearchItemInfo(strTitle, strDescription, objVideoInfo.CreatedByUser, objVideoInfo.CreatedDate, objVideoInfo.ModuleId, objVideoInfo.ItemId.ToString(), strContent, "ItemId=" + objVideoInfo.ItemId.ToString());
                SearchItemCollection.Add(SearchItem);                           
            }
 
            return SearchItemCollection;
        }

}

In Host -> Module Definitions I've done an update and the checkbox "Searchable" is checked.

But when I try to search an item I obtain some strange results. For example, if I search "Conferenza" the item which title is "Conferenza cna" is correctly found, but if I search "cna" the same item isn't found. I've got another item, which title is "Mork e mindi", and this item is found both writing "Mork" and writing "Mindi". So, I'm really confused  

I've tried to debug my application, and it seems search items are correct and are correctly add to SearchItemCollections.

Anyone can help me please?

I've another question: When the GetSearchItems method is called and by whom???

 
New Post
10/4/2007 8:52 AM
 

what is your minimum search word length during indexing?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/4/2007 9:11 AM
 

In Host -> "Search admin" I've set "Minimun Word Length" at 1.

 
New Post
10/4/2007 10:13 AM
 

In "Admin" -> "Event viewer" there are these two general exceptions:

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Il valore non può essere null. Nome parametro: type
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.ArgumentNullException: Il valore non può essere null. Nome parametro: type in System.Activator.CreateInstance(Type type, Boolean nonPublic) in System.Activator.CreateInstance(Type type) in DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache) in C:\DotNetNuke_2\Library\Components\Framework\Reflection.vb:riga 227 in DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey) in C:\DotNetNuke_2\Library\Components\Framework\Reflection.vb:riga 207 in DotNetNuke.Services.Search.ModuleIndexer.GetModuleList(Int32 PortalID) in C:\DotNetNuke_2\Library\Providers\SearchProviders\ModuleIndexer\ModuleIndexer.vb:riga 110

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Impossibile caricare il tipo ''.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.Web.HttpException: Impossibile caricare il tipo ''. ---> System.ArgumentException: La stringa non può avere lunghezza zero. in System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) in System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) --- Fine dell'analisi dello stack dell'eccezione interna --- in System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) in DotNetNuke.Framework.Reflection.CreateType(String TypeName, String CacheKey, Boolean UseCache, Boolean IgnoreErrors) in C:\DotNetNuke_2\Library\Components\Framework\Reflection.vb:riga 278

Are these exceptions the cause of my problem? How can I solve it? Please help me!

 
New Post
10/4/2007 11:20 AM
 

make sure, that supportedFeatures is not null for any of the entries in your DesktopModules table. set those to 0.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problems with ISearchabeProblems with ISearchabe


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