diff --git a/src/Umbraco.Core/Services/EntityXmlSerializer.cs b/src/Umbraco.Core/Services/EntityXmlSerializer.cs index 1e7a95d6fd..919306ba9c 100644 --- a/src/Umbraco.Core/Services/EntityXmlSerializer.cs +++ b/src/Umbraco.Core/Services/EntityXmlSerializer.cs @@ -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) { diff --git a/src/UmbracoExamine/UmbracoContentIndexer.cs b/src/UmbracoExamine/UmbracoContentIndexer.cs index 0a3eca1f1e..2a2e2ce98c 100644 --- a/src/UmbracoExamine/UmbracoContentIndexer.cs +++ b/src/UmbracoExamine/UmbracoContentIndexer.cs @@ -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