How to Get formatted Source

I just want the actual data as array from ElasticSearch and not the meta related to that.
Following is the my code. After getting the data from ES, I need to parse that and select the "_source" from there.
That way it eats up few millisecond before I actually get the usable data.

JArray arrHits = (JArray)JObject.Parse(objElasticResponse.Body.ToString())["hits"]["hits"];
IEnumerable lstResponse = arrHits.Select(x => x["_source"]);

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.