0

i'm using Opensearch Client .NET implementation. The only way to use the search method is to map the response to a model like in this way

await client.SearchAsync<Model>(e => e
                            .Index("index")
                            .From(0)
                            .Size(1)
                            .Query(q => q
                            .Bool(b => b
                            .Must(
                                m => m.Term(t => t.Field(f => f.modelField).Value("somevalue")),
                            ))));

If i try to use something like dynamic or Dictionary i get an error with message:

"message": "'capacity' must be greater than zero. (Parameter 'capacity')",

Is possible to map the response to a dictionary? Thanks to all

0 Answers0