diff --git a/src/Umbraco.Examine/Umbraco.Examine.csproj b/src/Umbraco.Examine/Umbraco.Examine.csproj index 2115afadbf..b96e59c50c 100644 --- a/src/Umbraco.Examine/Umbraco.Examine.csproj +++ b/src/Umbraco.Examine/Umbraco.Examine.csproj @@ -47,7 +47,7 @@ - 1.0.0-beta024 + 1.0.0-beta025 diff --git a/src/Umbraco.Examine/UmbracoExamineIndexer.cs b/src/Umbraco.Examine/UmbracoExamineIndexer.cs index bec6415a2e..be8ed55e01 100644 --- a/src/Umbraco.Examine/UmbracoExamineIndexer.cs +++ b/src/Umbraco.Examine/UmbracoExamineIndexer.cs @@ -378,9 +378,10 @@ namespace Umbraco.Examine base.OnTransformingIndexValues(e); //ensure special __Path field - if (e.IndexItem.ValueSet.Values.TryGetValue("path", out var path) && e.IndexItem.ValueSet.Values.ContainsKey(IndexPathFieldName) == false) + var path = e.IndexItem.ValueSet.GetValue("path"); + if (path != null) { - e.IndexItem.ValueSet.Values[IndexPathFieldName] = new List { path }; + e.IndexItem.ValueSet.Set(IndexPathFieldName, path); } //strip html of all users fields if we detect it has HTML in it. @@ -390,8 +391,7 @@ namespace Umbraco.Examine { if (value.Value.Count > 0) { - var str = value.Value.First() as string; - if (str != null) + if (value.Value.First() is string str) { if (XmlHelper.CouldItBeXml(str)) { diff --git a/src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs index 1e3303fa3e..7f278af37f 100644 --- a/src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs +++ b/src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs @@ -136,7 +136,9 @@ namespace Umbraco.Tests.PublishedContent public void Do_Not_Find_In_Recycle_Bin() { using (var luceneDir = new RandomIdRamDirectory()) - using (var indexer = IndexInitializer.GetUmbracoIndexer(ProfilingLogger, luceneDir, ScopeProvider.SqlContext, options: new UmbracoContentIndexerOptions(true, false, null))) + using (var indexer = IndexInitializer.GetUmbracoIndexer(ProfilingLogger, luceneDir, ScopeProvider.SqlContext, + //include unpublished content since this uses the 'internal' indexer, it's up to the media cache to filter + options: new UmbracoContentIndexerOptions(true, false, null))) using (indexer.ProcessNonAsync()) { indexer.RebuildIndex(); @@ -151,7 +153,7 @@ namespace Umbraco.Tests.PublishedContent Assert.IsNotNull(publishedMedia); //move item to recycle bin - var newXml = XElement.Parse(@" + var newXml = XElement.Parse(@" 115 268 diff --git a/src/Umbraco.Tests/Umbraco.Tests.csproj b/src/Umbraco.Tests/Umbraco.Tests.csproj index 03e06799da..9398d29045 100644 --- a/src/Umbraco.Tests/Umbraco.Tests.csproj +++ b/src/Umbraco.Tests/Umbraco.Tests.csproj @@ -60,7 +60,7 @@ ..\packages\Castle.Core.4.1.1\lib\net45\Castle.Core.dll - ..\packages\Examine.1.0.0-beta024\lib\net45\Examine.dll + ..\packages\Examine.1.0.0-beta025\lib\net45\Examine.dll ..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll diff --git a/src/Umbraco.Tests/packages.config b/src/Umbraco.Tests/packages.config index f1b5109576..40493ae367 100644 --- a/src/Umbraco.Tests/packages.config +++ b/src/Umbraco.Tests/packages.config @@ -2,7 +2,7 @@ - + diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index 881270ecaf..4e3c129dc8 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -58,7 +58,7 @@ ..\packages\ClientDependency.1.9.6\lib\net45\ClientDependency.Core.dll - ..\packages\Examine.1.0.0-beta024\lib\net45\Examine.dll + ..\packages\Examine.1.0.0-beta025\lib\net45\Examine.dll ..\packages\ImageProcessor.Web.4.8.4\lib\net45\ImageProcessor.Web.dll diff --git a/src/Umbraco.Web.UI/packages.config b/src/Umbraco.Web.UI/packages.config index 98b3d56f79..a40f03de18 100644 --- a/src/Umbraco.Web.UI/packages.config +++ b/src/Umbraco.Web.UI/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj index c43c6b21ed..06a7e4dc57 100644 --- a/src/Umbraco.Web/Umbraco.Web.csproj +++ b/src/Umbraco.Web/Umbraco.Web.csproj @@ -72,7 +72,7 @@ - +