From 221749cc7faeefa7384b6535540117bc35a7f10f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 15 May 2020 22:45:46 +0000 Subject: [PATCH] --- devdocs/todo.txt | 1 + server/AyaNova/biz/Search.cs | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/devdocs/todo.txt b/devdocs/todo.txt index 92beaf3a..4e3163ab 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -2,6 +2,7 @@ PRIORITY - ALWAYS Lowest level stuff first =-=-=-=- todo: search tables in schema, I think there is a missing index here, need to look at the search query section again as it was changed several times from the original schema creation + todo: schema, move all initializing stuff to schema update 1 right now it's 11 but that's weird diff --git a/server/AyaNova/biz/Search.cs b/server/AyaNova/biz/Search.cs index 13830213..a3cbb3bf 100644 --- a/server/AyaNova/biz/Search.cs +++ b/server/AyaNova/biz/Search.cs @@ -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));