Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested mappings no longer support generics nicely? #8455

Open
tommymonk opened this issue Feb 6, 2025 · 0 comments
Open

Nested mappings no longer support generics nicely? #8455

tommymonk opened this issue Feb 6, 2025 · 0 comments
Labels
8.x Relates to 8.x client version Category: Bug

Comments

@tommymonk
Copy link

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 ?

@tommymonk tommymonk added 8.x Relates to 8.x client version Category: Bug labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Relates to 8.x client version Category: Bug
Projects
None yet
Development

No branches or pull requests

1 participant