mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 03:14:10 +08:00
Don't analyze the title when indexed
This is a technical value and thus shouldn't be analyzed.
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Orchard.Core.Common.Handlers {
|
||||
|
||||
OnIndexing<CommonPart>((context, commonPart) => {
|
||||
context.DocumentIndex
|
||||
.Add("type", commonPart.ContentItem.ContentType).Analyze().Store()
|
||||
.Add("type", commonPart.ContentItem.ContentType).Store()
|
||||
.Add("created", commonPart.CreatedUtc ?? _clock.UtcNow).Store()
|
||||
.Add("published", commonPart.PublishedUtc ?? _clock.UtcNow).Store()
|
||||
.Add("modified", commonPart.ModifiedUtc ?? _clock.UtcNow).Store();
|
||||
|
Reference in New Issue
Block a user