From 314a053bf70888011685ede40143f9f67da45ce6 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 19 Sep 2018 17:22:46 +0000 Subject: [PATCH] --- server/AyaNova/biz/Search.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/AyaNova/biz/Search.cs b/server/AyaNova/biz/Search.cs index 42eebb31..822cf1fb 100644 --- a/server/AyaNova/biz/Search.cs +++ b/server/AyaNova/biz/Search.cs @@ -209,12 +209,12 @@ namespace AyaNova.Biz /// Stop words list reset upon login or editing of localized text /// used for eliminating noise words from search dictionary /// - public static System.Collections.Generic.List StopList = null; + // public static System.Collections.Generic.List StopList = null; internal static string BreakCore(long localeId, bool KeepWildCards, params string[] text) { //Get stopwords and CJKIndex flag value - LocaleWordBreakingData LSD = GetLocaleSearchData(localeId); + LocaleWordBreakingData LocaleSearchData = GetLocaleSearchData(localeId); int MAXWORDLENGTH = 255; StringBuilder sbResults = new StringBuilder(); //List to temporarily hold parsed words @@ -251,7 +251,7 @@ namespace AyaNova.Biz //get it as a character char c = t.GetTextElement()[0]; - if (!LSD.CJKIndex) + if (!LocaleSearchData.CJKIndex) { #region regular tokenizer @@ -477,7 +477,7 @@ namespace AyaNova.Biz foreach (string s in tempParsedWords) { //Add only non stopwords - if (!StopList.Contains(s)) + if (!LocaleSearchData.StopWords.Contains(s)) { sbResults.Append(s); sbResults.Append(",");