mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-31 21:15:28 +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:
parent
96cd45fdae
commit
fe7f241fd6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user