# How to call Explain with a NEST SearchDescriptor object?

**URL:** <https://discuss.elastic.co/t/how-to-call-explain-with-a-nest-searchdescriptor-object/286327>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [October 11, 2021, 4:04am UTC](https://discuss.elastic.co/t/how-to-call-explain-with-a-nest-searchdescriptor-object/286327 "2021-10-11T04:04:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chm/32/78258_2.png) [@chm](https://discuss.elastic.co/u/chm)\
**Post date:** [October 11, 2021, 4:04am UTC](https://discuss.elastic.co/t/how-to-call-explain-with-a-nest-searchdescriptor-object/286327/1 "2021-10-11T04:04:30Z")

</div>

I'm running a search calling Nest's SearchAsync with a SearchDescriptor object. I want to be able to reuse that SearchDescriptor object in a call to the Explain API with a particular document id, to see why that doc was/wasn't a result of the search. I'm happy to use `.LowLevel.ExplainAsync`, but that seems to only take a json string representation of the search. How can I pass in the SearchDescriptor or serialize the SearchDescriptor to use as post data, or something similar?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 8, 2021, 4:04am UTC](https://discuss.elastic.co/t/how-to-call-explain-with-a-nest-searchdescriptor-object/286327/2 "2021-11-08T04:04:42Z")

</div>

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