public bool TryLoadProperty(ulong documentKey, string propertyName, out PropertyDatabaseRecordKey recordKey, out object value, out string alias) { var propertyHash = PropertyDatabase.CreatePropertyHash(propertyName); recordKey = PropertyDatabase.CreateRecordKey(documentKey, propertyHash); if (!propertyAliasesView.TryLoad(recordKey, out object aliasObj)) { value = null; alias = propertyName; SearchMonitor.Log($"<color=red>Failed</color> to load {propertyName} without alias", recordKey, propertyName); return(false); } alias = (aliasObj as string) ?? propertyName; if (propertyDatabaseView.TryLoad(recordKey, out value)) { SearchMonitor.Log($"Load property {propertyName}", recordKey, value); return(true); } SearchMonitor.Log($"<color=red>Failed</color> to load property {propertyName}", recordKey, propertyName); return(false); }
public Hash128 CreatePropertyHash(string propertyPath) { return(PropertyDatabase.CreatePropertyHash(propertyPath)); }