This commit is contained in:
2018-09-19 17:32:26 +00:00
parent 314a053bf7
commit f78c022824
2 changed files with 10 additions and 2 deletions

View File

@@ -18,6 +18,14 @@ namespace AyaNova.Biz
public static class Search public static class Search
{ {
/*
ISSUES:
I'm seeing stopwords in the database searchdictionary "the" that shouldn't be there in the first place
ObjectID and type are empty in searchkeys
*/
#region ProcessKeywords into Database #region ProcessKeywords into Database
public static void ProcessNewObjectKeywords(AyContext ct, long localeId, long objectID, AyaType objectType, string name, params string[] text) public static void ProcessNewObjectKeywords(AyContext ct, long localeId, long objectID, AyaType objectType, string name, params string[] text)
@@ -102,7 +110,7 @@ namespace AyaNova.Biz
//CREATE THE SEARCHKEY RECORDS FOR ALL THE KEYWORDS //CREATE THE SEARCHKEY RECORDS FOR ALL THE KEYWORDS
foreach (MatchingDictionaryEntry E in MatchingKeywordIdList) foreach (MatchingDictionaryEntry E in MatchingKeywordIdList)
{ {
ct.SearchKey.Add(new SearchKey() { WordId = E.DictionaryId, InName = E.InName }); ct.SearchKey.Add(new SearchKey() { WordId = E.DictionaryId, InName = E.InName, ObjectId = objectID, ObjectType = objectType });
} }
ct.SaveChanges(); ct.SaveChanges();

View File

@@ -11,7 +11,7 @@ namespace AyaNova.Util
{ {
get get
{ {
return "8.0.0-alpha.2018.8.23"; return "8.0.0-alpha.2018.9.18";
} }
} }