Merge remote-tracking branch 'origin/dev-v7' into dev-v8
# Conflicts: # build/Modules/Umbraco.Build/Umbraco.Build.psm1 # src/SolutionInfo.cs # src/Umbraco.Core/Configuration/UmbracoVersion.cs # src/Umbraco.Core/DatabaseContext.cs # src/Umbraco.Core/IO/FileSystemProviderManager.cs # src/Umbraco.Core/ObjectExtensions.cs # src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSevenSevenZero/AddUserGroupTables.cs # src/Umbraco.Core/PropertyEditors/ValueConverters/IntegerValueConverter.cs # src/Umbraco.Core/Services/IdkMap.cs # src/Umbraco.Core/Services/UserService.cs # src/Umbraco.Core/packages.config # src/Umbraco.Tests.Benchmarks/app.config # src/Umbraco.Tests/UI/LegacyDialogTests.cs # src/Umbraco.Web/Cache/MediaCacheRefresher.cs # src/Umbraco.Web/Cache/UnpublishedPageCacheRefresher.cs # src/Umbraco.Web/Features/DisabledFeatures.cs # src/Umbraco.Web/Mvc/RenderRouteHandler.cs # src/Umbraco.Web/Mvc/UmbracoAuthorizeAttribute.cs # src/Umbraco.Web/PublishedCache/ContextualPublishedCache.cs # src/Umbraco.Web/PublishedCache/ContextualPublishedContentCache.cs # src/Umbraco.Web/PublishedCache/ContextualPublishedMediaCache.cs # src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs # src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs # src/Umbraco.Web/PublishedContentQuery.cs # src/Umbraco.Web/WebApi/Filters/FeatureAuthorizeAttribute.cs # src/Umbraco.Web/packages.config # src/Umbraco.Web/umbraco.presentation/umbraco/create/MemberGroupTasks.cs
This commit is contained in:
@@ -8,6 +8,7 @@ using Examine.LuceneEngine.SearchCriteria;
|
||||
using Examine.SearchCriteria;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Models.PublishedContent;
|
||||
using Umbraco.Core.Services;
|
||||
using Umbraco.Core.Xml;
|
||||
using Umbraco.Web.PublishedCache;
|
||||
|
||||
@@ -171,7 +172,6 @@ namespace Umbraco.Web
|
||||
private static IPublishedContent ItemById(Guid id, IPublishedCache cache)
|
||||
{
|
||||
var doc = cache.GetById(id);
|
||||
return doc;
|
||||
}
|
||||
|
||||
private static IPublishedContent ItemByXPath(string xpath, XPathVariable[] vars, IPublishedCache cache)
|
||||
@@ -243,13 +243,13 @@ namespace Umbraco.Web
|
||||
if (!(searcher is BaseLuceneSearcher luceneSearcher))
|
||||
{
|
||||
var results = searcher.Search(term, useWildCards);
|
||||
totalRecords = results.TotalItemCount;
|
||||
totalRecords = results.TotalItemCount;
|
||||
// Examine skip, Linq take
|
||||
return results.Skip(skip).ToPublishedSearchResults(_contentCache).Take(take);
|
||||
}
|
||||
|
||||
var criteria = SearchAllFields(term, useWildCards, luceneSearcher);
|
||||
return Search(skip, take, out totalRecords, criteria, searcher);
|
||||
return Search(skip, take, out totalRecords, criteria, searcher);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -287,7 +287,7 @@ namespace Umbraco.Web
|
||||
{
|
||||
//get the GetSearchFields method from BaseLuceneSearcher
|
||||
_examineGetSearchFields = typeof(BaseLuceneSearcher).GetMethod("GetSearchFields", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static);
|
||||
}
|
||||
}
|
||||
|
||||
//get the results of searcher.BaseLuceneSearcher() using ugly reflection since it's not public
|
||||
var searchFields = (IEnumerable<string>) _examineGetSearchFields.Invoke(searcher, null);
|
||||
@@ -314,8 +314,8 @@ namespace Umbraco.Web
|
||||
public Examineness Examineness { get; private set; }
|
||||
public string Value { get; private set; }
|
||||
public float Level { get; private set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user