Updates latest examine + api updates + fixes tests, gets different validation working (valid, failed, filtered)

This commit is contained in:
Shannon
2018-12-03 22:10:56 +11:00
parent 6103832b8a
commit f8d203abff
26 changed files with 343 additions and 279 deletions

View File

@@ -240,8 +240,9 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
try
{
//by default use the internal index
return eMgr.GetSearcher(Constants.Examine.InternalIndexer);
if (eMgr.TryGetIndex(Constants.Examine.InternalIndexer, out var index))
return index.GetSearcher();
throw new InvalidOperationException($"No index found by name {Constants.Examine.InternalIndexer}");
}
catch (FileNotFoundException)
{