/// ----------------------------------------------------------------------------- /// <summary> /// Indexes content within the given time farame /// </summary> /// ----------------------------------------------------------------------------- internal void IndexContent() { //Index TAB META-DATA var tabIndexer = new TabIndexer(); var searchDocsCount = GetAndStoreSearchDocuments(tabIndexer); var indexedSearchDocumentCount = searchDocsCount; AddIdexingResults("Tabs Indexed", searchDocsCount); //Index MODULE META-DATA from modules that inherit from ModuleSearchBase var moduleIndexer = new ModuleIndexer(true); searchDocsCount = GetAndStoreModuleMetaData(moduleIndexer); indexedSearchDocumentCount += searchDocsCount; AddIdexingResults("Modules (Metadata) Indexed", searchDocsCount); //Index MODULE CONTENT from modules that inherit from ModuleSearchBase searchDocsCount = GetAndStoreSearchDocuments(moduleIndexer); indexedSearchDocumentCount += searchDocsCount; //Both ModuleSearchBase and ISearchable module content count AddIdexingResults("Modules (Content) Indexed", searchDocsCount); if (!HostController.Instance.GetBoolean("DisableUserCrawling", false)) { //Index User data var userIndexer = new UserIndexer(); var userIndexed = GetAndStoreSearchDocuments(userIndexer); indexedSearchDocumentCount += userIndexed; AddIdexingResults("Users", userIndexed); } SchedulerItem.AddLogNote("<br/><b>Total Items Indexed: " + indexedSearchDocumentCount + "</b>"); }
/// ----------------------------------------------------------------------------- /// <summary> /// Indexes content within the given time farame /// </summary> /// <param name="startDate"></param> /// <history> /// [vnguyen] 04/17/2013 created /// </history> /// ----------------------------------------------------------------------------- internal void IndexContent(DateTime startDate) { var tabIndexer = new TabIndexer(); var moduleIndexer = new ModuleIndexer(); var userIndexer = new UserIndexer(); IndexedSearchDocumentCount = 0; Results = new Dictionary <string, int>(); //Index TAB META-DATA var searchDocs = GetSearchDocuments(tabIndexer, startDate); var searchDocuments = searchDocs as IList <SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); Results.Add("Tabs", searchDocuments.Count()); //Index MODULE META-DATA from modules that inherit from ModuleSearchBase searchDocs = GetModuleMetaData(startDate); searchDocuments = searchDocs as IList <SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); Results.Add("Modules (Metadata)", searchDocuments.Count()); //Index MODULE CONTENT from modules that inherit from ModuleSearchBase searchDocs = GetSearchDocuments(moduleIndexer, startDate); searchDocuments = searchDocs as IList <SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); #pragma warning disable 0618 //Index all Defunct ISearchable module content var searchItems = GetContent(moduleIndexer); SearchDataStoreProvider.Instance().StoreSearchItems(searchItems); #pragma warning restore 0618 IndexedSearchDocumentCount += searchItems.Count; //Both ModuleSearchBase and ISearchable module content count Results.Add("Modules (Content)", searchDocuments.Count() + searchItems.Count); //Index User data if (HostController.Instance.GetBoolean("DisableUserCrawling", false)) { return; } searchDocs = GetSearchDocuments(userIndexer, startDate); searchDocuments = searchDocs as IList <SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); var userIndexed = searchDocuments.Select( d => d.UniqueKey.Substring(0, d.UniqueKey.IndexOf("_", StringComparison.Ordinal))) .Distinct() .Count(); IndexedSearchDocumentCount += userIndexed; Results.Add("Users", userIndexed); }
/// ----------------------------------------------------------------------------- /// <summary> /// Indexes content within the given time farame /// </summary> /// <param name="startDate"></param> /// <history> /// [vnguyen] 04/17/2013 created /// </history> /// ----------------------------------------------------------------------------- internal void IndexContent(DateTime startDate) { var tabIndexer = new TabIndexer(); var moduleIndexer = new ModuleIndexer(true); var userIndexer = new UserIndexer(); IndexedSearchDocumentCount = 0; Results = new Dictionary<string, int>(); //Index TAB META-DATA var searchDocs = GetSearchDocuments(tabIndexer, startDate); var searchDocuments = searchDocs as IList<SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); Results.Add("Tabs", searchDocuments.Count()); //Index MODULE META-DATA from modules that inherit from ModuleSearchBase searchDocs = GetModuleMetaData(moduleIndexer, startDate); searchDocuments = searchDocs as IList<SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); Results.Add("Modules (Metadata)", searchDocuments.Count()); //Index MODULE CONTENT from modules that inherit from ModuleSearchBase searchDocs = GetSearchDocuments(moduleIndexer, startDate); searchDocuments = searchDocs as IList<SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); #pragma warning disable 0618 //Index all Defunct ISearchable module content var searchItems = GetContent(moduleIndexer); SearchDataStoreProvider.Instance().StoreSearchItems(searchItems); #pragma warning restore 0618 IndexedSearchDocumentCount += searchItems.Count; //Both ModuleSearchBase and ISearchable module content count Results.Add("Modules (Content)", searchDocuments.Count() + searchItems.Count); //Index User data if (HostController.Instance.GetBoolean("DisableUserCrawling", false)) return; searchDocs = GetSearchDocuments(userIndexer, startDate); searchDocuments = searchDocs as IList<SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); var userIndexed = searchDocuments.Select( d => d.UniqueKey.Substring(0, d.UniqueKey.IndexOf("_", StringComparison.Ordinal))) .Distinct() .Count(); IndexedSearchDocumentCount += userIndexed; Results.Add("Users", userIndexed); }
/// ----------------------------------------------------------------------------- /// <summary> /// Indexes content within the given time farame. /// </summary> /// ----------------------------------------------------------------------------- internal void IndexContent() { // Index TAB META-DATA var tabIndexer = new TabIndexer(); var searchDocsCount = this.GetAndStoreSearchDocuments(tabIndexer); var indexedSearchDocumentCount = searchDocsCount; this.AddIdexingResults("Tabs Indexed", searchDocsCount); // Index MODULE META-DATA from modules that inherit from ModuleSearchBase var moduleIndexer = new ModuleIndexer(true); searchDocsCount = this.GetAndStoreModuleMetaData(moduleIndexer); indexedSearchDocumentCount += searchDocsCount; this.AddIdexingResults("Modules (Metadata) Indexed", searchDocsCount); // Index MODULE CONTENT from modules that inherit from ModuleSearchBase searchDocsCount = this.GetAndStoreSearchDocuments(moduleIndexer); indexedSearchDocumentCount += searchDocsCount; // Index all Defunct ISearchable module content #pragma warning disable 0618 var searchItems = this.GetContent(moduleIndexer); SearchDataStoreProvider.Instance().StoreSearchItems(searchItems); #pragma warning restore 0618 indexedSearchDocumentCount += searchItems.Count; // Both ModuleSearchBase and ISearchable module content count this.AddIdexingResults("Modules (Content) Indexed", searchDocsCount + searchItems.Count); if (!HostController.Instance.GetBoolean("DisableUserCrawling", false)) { // Index User data var userIndexer = new UserIndexer(); var userIndexed = this.GetAndStoreSearchDocuments(userIndexer); indexedSearchDocumentCount += userIndexed; this.AddIdexingResults("Users", userIndexed); } this.SchedulerItem.AddLogNote("<br/><b>Total Items Indexed: " + indexedSearchDocumentCount + "</b>"); }
/// ----------------------------------------------------------------------------- /// <summary> /// Indexes content within the given time farame /// </summary> /// <param name="startDate"></param> /// <history> /// [vnguyen] 04/17/2013 created /// </history> /// ----------------------------------------------------------------------------- internal void IndexContent(DateTime startDate) { var tabIndexer = new TabIndexer(); var moduleIndexer = new ModuleIndexer(); IndexedSearchDocumentCount = 0; Results = new Dictionary <string, int>(); //Index TAB META-DATA var searchDocs = GetSearchDocuments(tabIndexer, startDate); var searchDocuments = searchDocs as IList <SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); Results.Add("Tabs", searchDocuments.Count()); //Index MODULE META-DATA from modules that inherit from SearchModuleBase searchDocs = GetModuleMetaData(startDate); searchDocuments = searchDocs as IList <SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); Results.Add("Modules (Metadata)", searchDocuments.Count()); //Index MODULE CONTENT from modules that inherit from SearchModuleBase searchDocs = GetSearchDocuments(moduleIndexer, startDate); searchDocuments = searchDocs as IList <SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); #pragma warning disable 0618 //Index all Defunct ISearchable module content var searchItems = GetContent(moduleIndexer); SearchDataStoreProvider.Instance().StoreSearchItems(searchItems); #pragma warning restore 0618 IndexedSearchDocumentCount += searchItems.Count; //Both SearchModuleBase and ISearchable module content count Results.Add("Modules (Content)", searchDocuments.Count() + searchItems.Count); }
/// ----------------------------------------------------------------------------- /// <summary> /// Indexes content within the given time farame /// </summary> /// <param name="startDate"></param> /// <history> /// [vnguyen] 04/17/2013 created /// </history> /// ----------------------------------------------------------------------------- internal void IndexContent(DateTime startDate) { var tabIndexer = new TabIndexer(); var moduleIndexer = new ModuleIndexer(); IndexedSearchDocumentCount = 0; Results = new Dictionary<string, int>(); //Index TAB META-DATA var searchDocs = GetSearchDocuments(tabIndexer, startDate); var searchDocuments = searchDocs as IList<SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); Results.Add("Tabs", searchDocuments.Count()); //Index MODULE META-DATA from modules that inherit from SearchModuleBase searchDocs = GetModuleMetaData(startDate); searchDocuments = searchDocs as IList<SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); Results.Add("Modules (Metadata)", searchDocuments.Count()); //Index MODULE CONTENT from modules that inherit from SearchModuleBase searchDocs = GetSearchDocuments(moduleIndexer, startDate); searchDocuments = searchDocs as IList<SearchDocument> ?? searchDocs.ToList(); StoreSearchDocuments(searchDocuments); IndexedSearchDocumentCount += searchDocuments.Count(); #pragma warning disable 0618 //Index all Defunct ISearchable module content var searchItems = GetContent(moduleIndexer); SearchDataStoreProvider.Instance().StoreSearchItems(searchItems); #pragma warning restore 0618 IndexedSearchDocumentCount += searchItems.Count; //Both SearchModuleBase and ISearchable module content count Results.Add("Modules (Content)", searchDocuments.Count() + searchItems.Count); }