This commit is contained in:
2018-12-06 20:01:11 +00:00
parent 4728435a32
commit 3317f8b7e6
2 changed files with 8 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ namespace AyaNova.Biz
EventLogProcessor.LogEventToDatabase(new Event(UserId, outObj.Id, BizType, AyaEvent.Created), ct);
//SEARCH INDEXING
Search.ProcessNewObjectKeywords(UserLocaleId, outObj.Id, BizType, outObj.Name, outObj.Name);
// Search.ProcessNewObjectKeywords(UserLocaleId, outObj.Id, BizType, outObj.Name, outObj.Name);
return outObj;
@@ -103,7 +103,7 @@ namespace AyaNova.Biz
EventLogProcessor.LogEventToDatabase(new Event(UserId, outObj.Id, BizType, AyaEvent.Created), TempContext);
//SEARCH INDEXING
Search.ProcessNewObjectKeywords(UserLocaleId, outObj.Id, BizType, outObj.Name, outObj.Name);
// Search.ProcessNewObjectKeywords(UserLocaleId, outObj.Id, BizType, outObj.Name, outObj.Name);
return outObj;
@@ -174,7 +174,7 @@ namespace AyaNova.Biz
EventLogProcessor.LogEventToDatabase(new Event(UserId, dbObj.Id, BizType, AyaEvent.Modified), ct);
//Update keywords
Search.ProcessUpdatedObjectKeywords(UserLocaleId, dbObj.Id, BizType, dbObj.Name, dbObj.Name);
// Search.ProcessUpdatedObjectKeywords(UserLocaleId, dbObj.Id, BizType, dbObj.Name, dbObj.Name);
return true;
}
@@ -201,7 +201,7 @@ namespace AyaNova.Biz
ct.SaveChanges();
//Delete search index
Search.ProcessDeletedObjectKeywords(dbObj.Id, BizType);
//Search.ProcessDeletedObjectKeywords(dbObj.Id, BizType);
return true;

View File

@@ -712,10 +712,12 @@ namespace AyaNova.Biz
/// cards entered
/// </summary>
/// <param name="localeId"></param>
/// <param name="textStrings"></param>
/// <param name="searchPhrase"></param>
/// <returns></returns>
internal static List<string> BreakSearchPhrase(long localeId, List<string> textStrings)
internal static List<string> BreakSearchPhrase(long localeId, string searchPhrase)
{
List<string> textStrings=new List<string>();
textStrings.Add(searchPhrase);
return BreakCore(localeId, true, textStrings);
}