title: How can I deserialize the string in the field when pulling documents with nest in c#?
body: <p>I'm trying to deserialize the string json value in the responseBody field. After get the documents I can deserialize this in the foreach. But I think it would be better if there is a way to do this inside SearchAsync.</p>
  <pre><code>var searchResponse = await elasticClient.SearchAsync&lt;TransactionsElasticDto&gt;(s =&gt; s
                          .Size(1000)
                          .Query(q =&gt; q
                          .DateRange(r =&gt; r
                          .Field(f =&gt; f.CreatedDate).GreaterThanOrEquals(startDate).LessThan(endDate))
                      ).Scroll(&quot;30s&quot;))
  </code></pre>
  <p>The following is an example of a document in elasticsearch</p>
  <pre><code>{
          &quot;_index&quot; : &quot;test_transactions_202110&quot;,
          &quot;_type&quot; : &quot;_doc&quot;,
          &quot;_source&quot; : {
            &quot;consumerId&quot; : 5420,
            &quot;createdDate&quot; : &quot;2021-10-06T11:58:52.2270000&quot;,
            &quot;responseBody&quot; : &quot;&quot;&quot;{&quot;ProgramId&quot;:486435,&quot;Test&quot;:{&quot;TestId&quot;:9728783}}&quot;&quot;&quot;
          }
  }
  </code></pre>