Skip to content

Feature: Push down generic types when mapping nested properties #8455

Open
@tommymonk

Description

@tommymonk

Elastic.Clients.Elasticsearch version: 8.*

Elasticsearch version: 8.*

.NET runtime version: 9

Operating system version: Windows 11

Description of the problem including expected versus actual behavior:
The Nest driver used to support mapping nested objects fluently using generics

e.g. descriptor.Nested<SomeType>(n => n.Name(s => s.ListOfSomeType).Properties(s => s.Keyword(k => k.SomePropertyOfSomeType)))

Have I just overlooked how this should be done in the new driver, I have seen other tickets where people mention working around it by using the existing Nested method but using .First().SomePropertyOfSomeType all over the place ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions