Changes term Indexer to Index and fixes a failing test

This commit is contained in:
Shannon
2018-12-10 13:06:39 +11:00
parent 852b44af0e
commit bcd908e47d
16 changed files with 67 additions and 67 deletions

View File

@@ -123,15 +123,15 @@ namespace Umbraco.Web.Models.Mapping
.AfterMap((src, dest) =>
{
//get the icon if there is one
dest.Icon = src.Values.ContainsKey(UmbracoExamineIndexer.IconFieldName)
? src.Values[UmbracoExamineIndexer.IconFieldName]
dest.Icon = src.Values.ContainsKey(UmbracoExamineIndex.IconFieldName)
? src.Values[UmbracoExamineIndex.IconFieldName]
: "icon-document";
dest.Name = src.Values.ContainsKey("nodeName") ? src.Values["nodeName"] : "[no name]";
if (src.Values.ContainsKey(UmbracoExamineIndexer.NodeKeyFieldName))
if (src.Values.ContainsKey(UmbracoExamineIndex.NodeKeyFieldName))
{
Guid key;
if (Guid.TryParse(src.Values[UmbracoExamineIndexer.NodeKeyFieldName], out key))
if (Guid.TryParse(src.Values[UmbracoExamineIndex.NodeKeyFieldName], out key))
{
dest.Key = key;
@@ -166,7 +166,7 @@ namespace Umbraco.Web.Models.Mapping
dest.ParentId = -1;
}
}
dest.Path = src.Values.ContainsKey(UmbracoExamineIndexer.IndexPathFieldName) ? src.Values[UmbracoExamineIndexer.IndexPathFieldName] : "";
dest.Path = src.Values.ContainsKey(UmbracoExamineIndex.IndexPathFieldName) ? src.Values[UmbracoExamineIndex.IndexPathFieldName] : "";
if (src.Values.ContainsKey(LuceneIndex.ItemTypeFieldName))
{