Skip to content

One Way Conversions from CreateIndexRequestDescriptor<TDocument> to CreateIndexRequestDescriptor #7855

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

Closed
InsperDylan390 opened this issue Jul 20, 2023 · 1 comment · Fixed by #8485

Comments

@InsperDylan390
Copy link

Is your feature request related to a problem? Please describe.
I'm working with elastic in a context using a large number of generic classes. In contexts where it would make sense to perform an action for a set of indexes I run into issues where I would like to setup a request for a given TDocument, but use it in a context that doesn't know about TDocument. For example, creating an instance of CreateIndexRequestDescriptor<TDocument, but then using the untyped Indicies.Create.

Describe the solution you'd like
Perhaps the ability to convert CreateIndexRequestDescriptor and other similar requests from the generic types into their non-generic equivalents?

Describe alternatives you've considered
Alternatively, having a concrete type relationship between the generic and non-generic types would also allow for easy conversion between the two?

Additional context
Add any other context or screenshots about the feature request here.

@sbodese
Copy link

sbodese commented Sep 13, 2023

hi, it seems for me like some identically issues like here:

#7929

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants