a property that is of type int[] is not added to the index at all. e.g.
[Indexed]
public int[] Ids { get; set; } = Array.Empty<int>();
whereas string[] is. e.g.
[Indexed]
public string[] Ids { get; set; } = Array.Empty<string>();
I think the issue arises around this code:
|
private static bool IsTypeIndexableArray(Type t) => t == typeof(string[]) || t == typeof(bool[]) || t == typeof(Guid[]) || t == typeof(List<string>) || t == typeof(List<bool>) || t == typeof(List<Guid>); |
Should I be decorating int[] fields differently?
a property that is of type
int[]is not added to the index at all. e.g.whereas
string[]is. e.g.I think the issue arises around this code:
redis-om-dotnet/src/Redis.OM/Modeling/RedisSchemaField.cs
Line 134 in 3ab039b
Should I be decorating int[] fields differently?