This commit is contained in:
Hamid Reza Mohammadi 2024-06-26 12:07:15 +03:30
parent 84f2d07b88
commit 19ebf4afd4

View File

@ -191,6 +191,7 @@ namespace RMuseum.Services.Implementation
string[] words = LanguageUtils.MakeTextSearchable(verse.Text).Split([' ', '‌']);
foreach (var word in words)
{
if(string.IsNullOrEmpty(word)) continue;
var wordCount = counts.Where(c => c.CatId == cat.Id && c.Word == word).SingleOrDefault();
if (wordCount != null)
{