#107 persian input normalization

This commit is contained in:
Hamid Reza Mohammadi 2021-04-25 19:46:54 +04:30
parent f1beddbc3d
commit dc63e69d4e

View File

@ -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)