mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding "title" field index from RoutePart
--HG-- branch : dev
This commit is contained in:
@@ -16,8 +16,11 @@ namespace Orchard.Core.Routable.Handlers {
|
||||
if (!string.IsNullOrEmpty(routable.Path))
|
||||
_routablePathConstraint.AddPath(routable.Path);
|
||||
});
|
||||
|
||||
OnIndexing<RoutePart>((context, part) => context.DocumentIndex.Add("title", part.Record.Title).RemoveTags().Analyze());
|
||||
}
|
||||
}
|
||||
|
||||
public class RoutePartHandlerBase : ContentHandlerBase {
|
||||
public override void GetContentItemMetadata(GetContentItemMetadataContext context) {
|
||||
var routable = context.ContentItem.As<RoutePart>();
|
||||
|
Reference in New Issue
Block a user