This commit is contained in:
2020-05-21 19:03:04 +00:00
parent 7ae49df200
commit 9b04fcb187
3 changed files with 8 additions and 5 deletions

View File

@@ -656,10 +656,10 @@ namespace AyaNova.Biz
/// </summary>
private static async Task ProcessKeywordsAsync(SearchIndexProcessObjectParameters p, bool newRecord)
{
#if (DEBUG)
if (!p.ObjectType.HasAttribute(typeof(CoreBizObjectAttribute)))
throw new System.NotSupportedException($"Search::ProcessKeywords - Invalid type presented {p.ObjectType}");
#endif
// #if (DEBUG)
// if (!p.ObjectType.HasAttribute(typeof(CoreBizObjectAttribute)))
// throw new System.NotSupportedException($"Search::ProcessKeywords - Invalid type presented {p.ObjectType}");
// #endif
List<string> KeyWordList = await BreakAsync(p.TranslationId, p.Words);
if (KeyWordList.Count == 0) return;

View File

@@ -44,6 +44,9 @@ namespace AyaNova.Util
***************************** WARNING: Be careful here, if a standard field is hideable and also it's DB SCHEMA is set to NON NULLABLE then the CLIENT end needs to set a default
***************************** Otherwise the hidden field can't be set and the object can't be saved EVER
HOW TO FIND UNUSED INDEXES: https://gist.github.com/jberkus/6b1bcaf7724dfc2a54f3
*/
static int startingSchema = -1;