This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user