mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Indexing TitlePart
--HG-- branch : 1.x extra : transplant_source : %B0%3Bl%B3ze%A0%9A%D9f%F6%D7J%8D%03%11F%DC%E0%AB
This commit is contained in:
@@ -7,6 +7,8 @@ namespace Orchard.Core.Title.Handlers {
|
||||
|
||||
public TitlePartHandler(IRepository<TitlePartRecord> repository) {
|
||||
Filters.Add(StorageFilter.For(repository));
|
||||
|
||||
OnIndexing<TitlePart>((context, part) => context.DocumentIndex.Add("title", part.Record.Title).RemoveTags().Analyze());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user