Don't analyze the title when indexed

This is a technical value and thus shouldn't be analyzed.
This commit is contained in:
Sebastien Ros 2013-10-11 14:50:44 -07:00
parent 96cd45fdae
commit fe7f241fd6

View File

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