This commit is contained in:
2018-09-19 17:22:46 +00:00
parent 75b09abd07
commit 314a053bf7

View File

@@ -209,12 +209,12 @@ namespace AyaNova.Biz
/// Stop words list reset upon login or editing of localized text /// Stop words list reset upon login or editing of localized text
/// used for eliminating noise words from search dictionary /// used for eliminating noise words from search dictionary
/// </summary> /// </summary>
public static System.Collections.Generic.List<string> StopList = null; // public static System.Collections.Generic.List<string> StopList = null;
internal static string BreakCore(long localeId, bool KeepWildCards, params string[] text) internal static string BreakCore(long localeId, bool KeepWildCards, params string[] text)
{ {
//Get stopwords and CJKIndex flag value //Get stopwords and CJKIndex flag value
LocaleWordBreakingData LSD = GetLocaleSearchData(localeId); LocaleWordBreakingData LocaleSearchData = GetLocaleSearchData(localeId);
int MAXWORDLENGTH = 255; int MAXWORDLENGTH = 255;
StringBuilder sbResults = new StringBuilder(); StringBuilder sbResults = new StringBuilder();
//List to temporarily hold parsed words //List to temporarily hold parsed words
@@ -251,7 +251,7 @@ namespace AyaNova.Biz
//get it as a character //get it as a character
char c = t.GetTextElement()[0]; char c = t.GetTextElement()[0];
if (!LSD.CJKIndex) if (!LocaleSearchData.CJKIndex)
{ {
#region regular tokenizer #region regular tokenizer
@@ -477,7 +477,7 @@ namespace AyaNova.Biz
foreach (string s in tempParsedWords) foreach (string s in tempParsedWords)
{ {
//Add only non stopwords //Add only non stopwords
if (!StopList.Contains(s)) if (!LocaleSearchData.StopWords.Contains(s))
{ {
sbResults.Append(s); sbResults.Append(s);
sbResults.Append(","); sbResults.Append(",");