Skip to content

Allow to use the SourceSerializer for InlineScript Parameter(s) #4971

@lanwin

Description

@lanwin

Is your feature request related to a problem? Please describe.
We currently have the case that we want to put a complex object as parameter into an InlineScript. That object uses Json.NET features like JsonConverters and co. Currently it seems that the RequestResponseSerializer is used for that object and so that features did not work.

Describe the solution you'd like
It should be possible to make NEST use the SourceSerializer also for the params of a Script or at least for some params. I could imaging that its possible to assign a Serializer in the settings of the InlineScript object or to wrap the object in something like DocumentSource(T source) which forces NEST to use the SourceSerializer instead.

Describe alternatives you've considered
I see no way of doing it yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions