Manual mapping of response to data model using Elastic.Clients.Elasticsearch
i am to declare Body as JsonElement and inspect its properties to parse the contained value as string or string[], depending on the token type. but I am stuck. My body response from elasticsearch can be string or string[] but my data model only set as string[]. below are my snippet
Problem mapping response to Model class [Elasticsearch.NET 8.13]
I am unable to map the ElasticsearchClient SearchASync
result into my data model. Gotten a conversion error: