public Dictionary <string, int> SearchIndexHash(SiteSettings ss)
 {
     if (AccessStatus != Databases.AccessStatuses.Selected)
     {
         return(null);
     }
     else
     {
         var searchIndexHash = new Dictionary <string, int>();
         SiteInfo.TenantCaches[Sessions.TenantId()]
         .SiteMenu.Breadcrumb(SiteId).SearchIndexes(searchIndexHash, 100);
         SiteId.SearchIndexes(searchIndexHash, 200);
         UpdatedTime.SearchIndexes(searchIndexHash, 200);
         WikiId.SearchIndexes(searchIndexHash, 1);
         Title.SearchIndexes(searchIndexHash, 4);
         Body.SearchIndexes(searchIndexHash, 200);
         Comments.SearchIndexes(searchIndexHash, 200);
         Creator.SearchIndexes(searchIndexHash, 100);
         Updator.SearchIndexes(searchIndexHash, 100);
         CreatedTime.SearchIndexes(searchIndexHash, 200);
         SearchIndexExtensions.OutgoingMailsSearchIndexes(
             searchIndexHash, "Wikis", WikiId);
         return(searchIndexHash);
     }
 }
Esempio n. 2
0
 public Dictionary <string, int> SearchIndexHash(Context context, SiteSettings ss)
 {
     if (AccessStatus != Databases.AccessStatuses.Selected)
     {
         return(null);
     }
     else
     {
         var searchIndexHash = new Dictionary <string, int>();
         SiteInfo.TenantCaches.Get(context.TenantId)?
         .SiteMenu
         .Breadcrumb(context: context, siteId: SiteId)
         .SearchIndexes(context, searchIndexHash, 100);
         SiteId.SearchIndexes(context, searchIndexHash, 200);
         UpdatedTime.SearchIndexes(context, searchIndexHash, 200);
         WikiId.SearchIndexes(context, searchIndexHash, 1);
         Title.SearchIndexes(context, searchIndexHash, 4);
         Body.SearchIndexes(context, searchIndexHash, 200);
         Comments.SearchIndexes(context, searchIndexHash, 200);
         Creator.SearchIndexes(context, searchIndexHash, 100);
         Updator.SearchIndexes(context, searchIndexHash, 100);
         CreatedTime.SearchIndexes(context, searchIndexHash, 200);
         SearchIndexExtensions.OutgoingMailsSearchIndexes(
             context: context,
             searchIndexHash: searchIndexHash,
             referenceType: "Wikis",
             referenceId: WikiId);
         return(searchIndexHash);
     }
 }