From 6771c9f2a191703d21b5e6d09af977a7b9012253 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 18 Sep 2018 22:44:03 +0000 Subject: [PATCH] --- devdocs/specs/core-search.txt | 2 +- server/AyaNova/biz/Search.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/devdocs/specs/core-search.txt b/devdocs/specs/core-search.txt index c9839b5e..8cb0e4ae 100644 --- a/devdocs/specs/core-search.txt +++ b/devdocs/specs/core-search.txt @@ -53,7 +53,7 @@ REQUIREMENTS - This is in the object, not in the searchkey as it would be inefficient - Need parent AyaType as an ENUM ATTRIBUTE in the AyaType table for easy traversal - CLEANUP: Generator able to cleanup index with no matching word (if possible), index with no matching typeandid -- CJK INDEX support: same as v7 +- CJK INDEX support: same as v7 but tied to Locale, not globally - GROUP BY: group by objectype then objectid (then created date?) - Coding: break this into separate discrete classes, the old v7 code is very monolithic and in-elegant - SAMPLE DATA: Need a huge amount of sample data indexed to load test it diff --git a/server/AyaNova/biz/Search.cs b/server/AyaNova/biz/Search.cs index 44fa8762..39284ffa 100644 --- a/server/AyaNova/biz/Search.cs +++ b/server/AyaNova/biz/Search.cs @@ -18,7 +18,7 @@ namespace AyaNova.Biz /// public static void ProcessKeywords(AyContext ct, long localeId, long objectID, AyaType objectType, bool newRecord, string keyWords, string name) { - var StopWords = GetStopWords(ct, localeId); + var StopWords = GetLocaleSearchData(ct, localeId); //Get CJK index bool flag. //TODO: should this be a property of the locale or a global setting as before?? @@ -53,7 +53,7 @@ namespace AyaNova.Biz //Get the current stopwords for the user's locale - private static List GetStopWords(AyContext ct, long localeId) + private static List GetLocaleSearchData(AyContext ct, long localeId) { //Get stopwords //Validate locale id, if not right then use default instead