From 9f2860d0f6d1012ea259a9b8f6016a077f2cb6e5 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 21 Jun 2019 21:28:41 +0000 Subject: [PATCH] --- server/AyaNova/biz/TagUtil.cs | 2 ++ 1 file changed, 2 insertions(+) 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(); } }