Skip to content

Indexed Properties of type int[] not added to index. #509

Description

@Jay1980

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions