From dc63e69d4e87f6f416b568fe76fa9d991f0c60fc Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sun, 25 Apr 2021 19:46:54 +0430 Subject: [PATCH] #107 persian input normalization --- RMuseum/Services/Implementation/GanjoorService.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/RMuseum/Services/Implementation/GanjoorService.cs b/RMuseum/Services/Implementation/GanjoorService.cs index 3efc1bd4..19aacd46 100644 --- a/RMuseum/Services/Implementation/GanjoorService.cs +++ b/RMuseum/Services/Implementation/GanjoorService.cs @@ -1782,6 +1782,7 @@ namespace RMuseum.Services.Implementation sql += $" {whereOrAnd} CatId IN (SELECT Id FROM GanjoorCategories WHERE PoetId = @PoetId ) "; whereOrAnd = " AND "; } + term = term.ApplyCorrectYeKe(); int wIndex = 0; foreach(string word in term.Split(' ', StringSplitOptions.RemoveEmptyEntries)) @@ -1817,7 +1818,7 @@ namespace RMuseum.Services.Implementation Id = poem.Cat.Poet.Id, } }, - } + } ); @@ -1844,8 +1845,6 @@ namespace RMuseum.Services.Implementation } } - - return new RServiceResult<(PaginationMetadata PagingMeta, GanjoorPoemCompleteViewModel[] Items)>(paginatedResult); } catch (Exception exp)