This commit is contained in:
2020-05-15 22:45:46 +00:00
parent db0352ecac
commit 221749cc7f
2 changed files with 1 additions and 3 deletions

View File

@@ -153,7 +153,6 @@ namespace AyaNova.Biz
//GET LIST OF DICTIONARY ID'S THAT MATCH REGULAR SEARCH TERMS
if (SearchTerms.Count > 0)
//DictionaryMatches = await ct.SearchDictionary.Where(m => SearchTerms.Contains(m.Word)).Select(m => m.Id).ToListAsync();
foreach (string Term in SearchTerms)
{
DictionaryMatches.AddRange(await ct.SearchDictionary.Where(m => m.Word.Contains(Term)).Select(m => m.Id).ToListAsync());
@@ -185,8 +184,6 @@ namespace AyaNova.Biz
//SEARCH SEARCHKEY FOR MATCHING WORDS AND OPTIONALLY TYPE
var TotalSearchTermsToMatch = PreWildCardedSearchTerms.Count + SearchTerms.Count;
// var TestRawMatches = await ct.SearchKey.Where(x => DictionaryMatches.Contains(x.WordId)).ToListAsync();
//Build search query based on searchParameters
var q = ct.SearchKey.Distinct().Where(x => DictionaryMatches.Contains(x.WordId));