# DocumentExist Response on .NET low level client

**URL:** <https://discuss.elastic.co/t/documentexist-response-on-net-low-level-client/263604>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [February 8, 2021, 1:32pm UTC](https://discuss.elastic.co/t/documentexist-response-on-net-low-level-client/263604 "2021-02-08T13:32:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![awan.soekamto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/awan.soekamto/32/78663_2.png) [@awan.soekamto](https://discuss.elastic.co/u/awan.soekamto)\
**Post date:** [February 8, 2021, 1:32pm UTC](https://discuss.elastic.co/t/documentexist-response-on-net-low-level-client/263604/1 "2021-02-08T13:32:25Z")

</div>

Hi,  
I am trying to check a document exist or not using the following code:

Me.LowLevelClient.DocumentExists(Of Elasticsearch.Net.StringResponse)(index:=TargetIndexName,  
id:=DocumentID)

But it returns with Body prop empty (it's a successful call (200)).  
Maybe I did it wrong?  
Thank you in advanced for your help.

---

<div class="post-metadata">

**Author:** ![awan.soekamto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/awan.soekamto/32/78663_2.png) [@awan.soekamto](https://discuss.elastic.co/u/awan.soekamto)\
**Post date:** [February 9, 2021, 3:20am UTC](https://discuss.elastic.co/t/documentexist-response-on-net-low-level-client/263604/2 "2021-02-09T03:20:48Z")

</div>

Turned out I have to use the:  
Me.LowLevelClient.Get()

Me.LowLevelClient.DocumentExists uses HEAD, which is not what I want.

---

<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:** [March 9, 2021, 3:21am UTC](https://discuss.elastic.co/t/documentexist-response-on-net-low-level-client/263604/3 "2021-03-09T03:21:03Z")

</div>

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