Merge branch 'tompipe-U4-8982-AddIsPublishedtoExamine' into dev-v7

This commit is contained in:
Stephan
2017-11-02 14:44:39 +01:00
2 changed files with 3 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ namespace Umbraco.Core.Services
xml.Add(new XAttribute("writerID", content.WriterId));
xml.Add(new XAttribute("template", content.Template == null ? "0" : content.Template.Id.ToString(CultureInfo.InvariantCulture)));
xml.Add(new XAttribute("nodeTypeAlias", content.ContentType.Alias));
xml.Add(new XAttribute("isPublished", content.Published));
if (deep)
{

View File

@@ -218,7 +218,8 @@ namespace UmbracoExamine
new StaticField("writerName", FieldIndexTypes.ANALYZED, false, string.Empty),
new StaticField("creatorName", FieldIndexTypes.ANALYZED, false, string.Empty),
new StaticField("nodeTypeAlias", FieldIndexTypes.ANALYZED, false, string.Empty),
new StaticField("path", FieldIndexTypes.NOT_ANALYZED, false, string.Empty)
new StaticField( "path", FieldIndexTypes.NOT_ANALYZED, false, string.Empty),
new StaticField( "isPublished", FieldIndexTypes.NOT_ANALYZED, false, string.Empty)
};
#endregion