This commit is contained in:
2018-12-06 20:13:41 +00:00
parent 3317f8b7e6
commit 29caad11e3
4 changed files with 55 additions and 24 deletions

View File

@@ -386,10 +386,13 @@ namespace AyaNova.Biz
public List<string> Tags { get; set; }
public SearchIndexProcessObjectParameters(long localeId, long objectID, AyaType objectType, string name)
public SearchIndexProcessObjectParameters(long localeId, long objectID, AyaType objectType, string name, List<string> tags = null)
{
Words = new List<string>();
Tags = new List<string>();
if (tags != null)
Tags = tags;
else
Tags = new List<string>();
LocaleId = localeId;
ObjectId = objectID;
ObjectType = objectType;
@@ -716,7 +719,7 @@ namespace AyaNova.Biz
/// <returns></returns>
internal static List<string> BreakSearchPhrase(long localeId, string searchPhrase)
{
List<string> textStrings=new List<string>();
List<string> textStrings = new List<string>();
textStrings.Add(searchPhrase);
return BreakCore(localeId, true, textStrings);
}