diff --git a/src/Redis.OM/Common/ExpressionParserUtilities.cs b/src/Redis.OM/Common/ExpressionParserUtilities.cs index 61e80cc9..8ae0bdfa 100644 --- a/src/Redis.OM/Common/ExpressionParserUtilities.cs +++ b/src/Redis.OM/Common/ExpressionParserUtilities.cs @@ -837,7 +837,7 @@ private static string TranslateContainsStandardQuerySyntax(MethodCallExpression var treatEnumsAsInts = type.IsEnum && !(propertyExpression.Member.GetCustomAttributes(typeof(JsonConverterAttribute)).FirstOrDefault() is JsonConverterAttribute converter && converter.ConverterType == typeof(JsonStringEnumConverter)); literal = GetOperandStringForQueryArgs(valuesExpression, treatEnumsAsInts); - if ((type == typeof(string) || type == typeof(string[]) || type == typeof(List) || type == typeof(Guid) || type == typeof(Ulid) || (type.IsEnum && !treatEnumsAsInts)) && attribute is IndexedAttribute) + if ((type == typeof(string) || type == typeof(string[]) || type == typeof(List) || type == typeof(Guid) || type == typeof(Guid[]) || type == typeof(List) || type == typeof(Ulid) || (type.IsEnum && !treatEnumsAsInts)) && attribute is IndexedAttribute) { return $"({memberName}:{{{EscapeTagField(literal).Replace("\\|", "|")}}})"; } diff --git a/src/Redis.OM/Modeling/RedisSchemaField.cs b/src/Redis.OM/Modeling/RedisSchemaField.cs index 38d44ee3..c5e16388 100644 --- a/src/Redis.OM/Modeling/RedisSchemaField.cs +++ b/src/Redis.OM/Modeling/RedisSchemaField.cs @@ -104,7 +104,7 @@ internal static string[] SerializeArgs(this PropertyInfo info) return ret.ToArray(); } - private static bool IsTypeIndexableArray(Type t) => t == typeof(string[]) || t == typeof(bool[]) || t == typeof(List) || t == typeof(List); + private static bool IsTypeIndexableArray(Type t) => t == typeof(string[]) || t == typeof(bool[]) || t == typeof(Guid[]) || t == typeof(List) || t == typeof(List) || t == typeof(List); private static IEnumerable SerializeIndexFromJsonPaths(PropertyInfo parentInfo, SearchFieldAttribute attribute, string prefix = "$.", string aliasPrefix = "", int remainingDepth = -1) {