earlier, I have used elastic 5.7 version in my application for the elastic search feature and used Nest lib in C# to get search results. Recently, upgraded Elastic version to 6.7, similarly, I have updated the relevant C# Code. But, facing issue while reading Script field values and it does not allow me access Value from it.
var remainders = topHits.Hits().Select(x => x.Fields).First().ToList();
var d = ((LazyDocument)remainders.Value);
it has field value type as LazyDocument and it does not have the option to read a value from it.
Kindly suggest me any solution to this problem.