/// ----------------------------------------------------------------------------- /// <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> /// ----------------------------------------------------------------------------- internal void IndexContent() { //Index TAB META-DATA TabIndexer tabIndexer = new TabIndexer(); int searchDocsCount = GetAndStoreSearchDocuments(tabIndexer); int indexedSearchDocumentCount = searchDocsCount; AddIdexingResults("Tabs Indexed", searchDocsCount); //Index MODULE META-DATA from modules that inherit from ModuleSearchBase ModuleIndexer 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; //Index all Defunct ISearchable module content #pragma warning disable 0618 SearchItemInfoCollection searchItems = GetContent(moduleIndexer); SearchDataStoreProvider.Instance().StoreSearchItems(searchItems); #pragma warning restore 0618 indexedSearchDocumentCount += searchItems.Count; //Both ModuleSearchBase and ISearchable module content count AddIdexingResults("Modules (Content) Indexed", searchDocsCount + searchItems.Count); if (!HostController.Instance.GetBoolean("DisableUserCrawling", false)) { //Index User data UserIndexer userIndexer = new UserIndexer(); int userIndexed = GetAndStoreSearchDocuments(userIndexer); indexedSearchDocumentCount += userIndexed; AddIdexingResults("Users", userIndexed); } SchedulerItem.AddLogNote("<br/><b>Total Items Indexed: " + indexedSearchDocumentCount + "</b>"); }
private void AddIdexingResults(string description, int count) { SchedulerItem.AddLogNote(string.Format("<br/> {0}: {1}", description, count)); }