搜索:ESIndexPost : IndexPostEnterpriseSearchProvider :SearchProviderESSearchResultSet : SearchResultSet
IndexServerESearch
------------------------------
建立索引:
job:定时建立索引SearchJob : IJobFilesIndexTask(ForumsIndexTask|GalleryIndexTask|WeblogIndexTask|ContentIndexTask):IndexTask
Module:某些事件发生时建立索引SearchModule : ICSModule
----------------------------Lucene.Net:
Document:SearchableFileDocument(SearchableForumsDocument|SearchableGalleryDocument|SearchableWeblogDocument):SearchableDocumentFields:CREATE PROCEDURE [dbo].[cs_Posts_ReindexBySection] ( @SectionID int, @SettingsID int ) AS --this proc intentionally renames all posts across all settingsids by that user -- first, set the post to be removed from the index INSERT cs_es_Search_RemoveQueue (PostID, SettingsID) SELECT P.PostID, P.SettingsID FROM cs_Posts P WHERE P.SectionID = @SectionID AND P.SettingsID = @SettingsID AND PostID NOT IN (SELECT PostID FROM cs_es_Search_RemoveQueue) -- step 2, add post to reindex table UPDATE cs_Posts set IsIndexed = 0 FROM cs_Posts P WHERE P.SectionID = @SectionID AND P.SettingsID = @SettingsID
转载于:https://www.cnblogs.com/Elong/archive/2006/11/15/561114.html
相关资源:JAVA上百实例源码以及开源项目