This commit is contained in:
2018-09-18 23:31:45 +00:00
parent 3824467c8c
commit 5c94811ac6

View File

@@ -141,26 +141,19 @@ namespace AyaNova.Biz
{ {
//Get stopwords and CJKIndex flag value //Get stopwords and CJKIndex flag value
LocaleSearchData LSD = GetLocaleSearchData(localeId); LocaleSearchData LSD = GetLocaleSearchData(localeId);
//bool CJK = GlobalSettings.CJKIndex;
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
//used to easily ensure unique words only //used to easily ensure unique words only
List<string> tempParsedWords = new List<string>(); List<string> tempParsedWords = new List<string>();
//Stuff required for creating xml fragment on the fly in memory (string)
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
StringBuilder sbWord = new StringBuilder(); StringBuilder sbWord = new StringBuilder();
System.IO.StringWriter sr = new System.IO.StringWriter(sb); // System.IO.StringWriter sr = new System.IO.StringWriter(sb);
System.Xml.XmlTextWriter w = new System.Xml.XmlTextWriter(sr); // System.Xml.XmlTextWriter w = new System.Xml.XmlTextWriter(sr);
w.Formatting = System.Xml.Formatting.Indented; // w.Formatting = System.Xml.Formatting.Indented;
w.WriteStartElement("Items"); // w.WriteStartElement("Items");
//Loop through each of the passed in strings //Loop through each of the passed in strings