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:
randompete
2011-11-25 14:02:20 +00:00
parent a6f2ae0d31
commit 72f196e6e2

View File

@@ -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());
}
}
}