This commit is contained in:
2019-07-03 18:29:36 +00:00
parent 76ee4c5de1
commit a041eefa34
6 changed files with 82 additions and 33 deletions

View File

@@ -394,7 +394,7 @@ namespace AyaNova.Biz
}
public SearchIndexProcessObjectParameters AddWord(string s)
public SearchIndexProcessObjectParameters AddText(string s)
{
if (!string.IsNullOrWhiteSpace(s))
{
@@ -402,12 +402,14 @@ namespace AyaNova.Biz
}
return this;
}
public SearchIndexProcessObjectParameters AddWord(uint u)
public SearchIndexProcessObjectParameters AddText(uint u)
{
Words.Add(u.ToString());
return this;
}
public SearchIndexProcessObjectParameters AddWord(List<string> lWords)
public SearchIndexProcessObjectParameters AddText(List<string> lWords)
{
if (lWords != null)
{
@@ -423,6 +425,15 @@ namespace AyaNova.Biz
return this;
}
public SearchIndexProcessObjectParameters AddCustomFields(string jsonString)
{
//Extract the text from custom fields json fragment as an array of strings and add it here
AddText(JsonUtil.GetCustomFieldsAsStringArrayForSearchIndexing(jsonString));
return this;
}
}
@@ -997,6 +1008,10 @@ namespace AyaNova.Biz
#endregion
#region Utility
#endregion utility
}//eoc
}//eons