Products

Solutions

Resources

Partners

Community

About

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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN 9.x - ModuleSearchBase and GetModifiedSearchDocuments only indexes data from MyModule on Portal DNN 9.x - ModuleSearchBase and GetModifiedSearchDocuments only indexes data from MyModule on Portal
Previous
 
Next
New Post
6/9/2018 10:59 AM
 
Hi
I use the DNN-Search in MyModule. An instance of MyModule occurs 1x on portal 0 and 1x on portal 1. Unfortunately, the Search Indexer only indexes the data of MyModule on Portal 1. MyModule on Portal 0 is completely ignored.

The method looks like this:

------------------------------
public override IList GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDateUtc)
{
    try
    {
    IList lst = (IList)ListProductsForLucene(moduleInfo.PortalID);
    IList lstSearchDocuments = new List();

    foreach (SearchResultLuceneInfo lstItem in lst)
    {
        SearchDocument searchDoc = new SearchDocument
        {
        IsActive = true,
        CultureCode = moduleInfo.CultureCode,
        TabId = moduleInfo.TabID,
        UniqueKey = lstItem.ProductId.ToString(),
        SearchTypeId = _moduleSearchTypeId,
        ModifiedTimeUtc = lstItem.UpdatedOnDate.ToUniversalTime(),
        AuthorUserId = moduleInfo.LastModifiedByUserID,
        ModuleId = moduleInfo.ModuleID,
        ModuleDefId = moduleInfo.ModuleDefID,
        Title = lstItem.ProductName,
        PortalId = moduleInfo.PortalID,
        Description = "Artikel " + moduleInfo.ModuleTitle,
        Body = lstItem.ProductId.ToString() + " " + lstItem.ShortDescription,
        QueryString = "Control=2&ProductId=" + lstItem.ProductId.ToString()
        };

        lstSearchDocuments.Add(searchDoc);
    }

    return lstSearchDocuments;
    }
    catch (Exception ex)
    {
    Exceptions.ProcessSchedulerException(ex);
    return null;
    }
}
------------------------------

There is no exception. When I debug, the debugger jumps into the method without any problems, but only the module of Portal 1 is passed as ModuleInfo.

Can any of you help me? Thank you very much.

Greetings Martin
 
New Post
6/20/2018 11:11 PM
 
Martin,
the indexer should call your module per moduleID and you should provide proper content (moduleid is portal specific)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN 9.x - ModuleSearchBase and GetModifiedSearchDocuments only indexes data from MyModule on Portal DNN 9.x - ModuleSearchBase and GetModifiedSearchDocuments only indexes data from MyModule on Portal


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