diff --git a/server/AyaNova/biz/TagUtil.cs b/server/AyaNova/biz/TagUtil.cs index d3d846e0..9eff059c 100644 --- a/server/AyaNova/biz/TagUtil.cs +++ b/server/AyaNova/biz/TagUtil.cs @@ -183,6 +183,8 @@ namespace AyaNova.Biz else { q = NormalizeTag(q); + //TODO: Use the EF CORE TAKE method to restrict the results to a maximum limit + //however need to ensure it doesn't balk when the limit is higher than the number of results (probably not but test that) return ct.Tag.Where(x => x.Name.Contains(q)).OrderByDescending(x => x.RefCount).Select(x => new TagCloudItem() { Name = x.Name, RefCount = x.RefCount }).ToList(); } }