Skip to content

Commit

Permalink
Use ContentType as IndexType in the index
Browse files Browse the repository at this point in the history
otherwise __NodeTypeAlias is empty
  • Loading branch information
marcemarc committed Apr 27, 2023
1 parent 6f6408e commit 87dc245
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Examine;
using Examine;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Infrastructure.Examine;

Expand All @@ -16,7 +16,7 @@ public IEnumerable<ValueSet> GetValueSets(params IContent[] contents)
["id"] = content.Id,
};

yield return new ValueSet(content.Id.ToString(), "content", indexValues);
yield return new ValueSet(content.Id.ToString(), "content",content.ContentType.Alias,indexValues);
}
}
}
Expand Down

0 comments on commit 87dc245

Please sign in to comment.