# Possible bug - GET with empty body update document

**URL:** <https://discuss.elastic.co/t/possible-bug-get-with-empty-body-update-document/88993>\
**Category:** Elasticsearch\
**Created:** [June 12, 2017, 8:40am UTC](https://discuss.elastic.co/t/possible-bug-get-with-empty-body-update-document/88993 "2017-06-12T08:40:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Dave\_Orvisky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_dave_orvisky/32/18985_2.png) [@David\_Dave\_Orvisky](https://discuss.elastic.co/u/David_Dave_Orvisky)\
**Post date:** [June 12, 2017, 8:40am UTC](https://discuss.elastic.co/t/possible-bug-get-with-empty-body-update-document/88993/1 "2017-06-12T08:40:57Z")

</div>

Hi,

i have just started to learning elasticsearch. But i find something, that may be a bug.

If I get document like:

```auto
GET /company/company/207016

```

- everything is ok, document is returned

![](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8a4ae630695c4f173e9e558f0c5365379afa11f7.png)

But if I get document like:

```auto
GET /company/company/207016
{
  
}

```

- elasticsearch performed update of document, with null values or whatever and than document is empty

![](https://us1.discourse-cdn.com/elastic/original/3X/b/7/b746ecd84ccb5a31ed17bda870df27f7b5cd355b.png)

- and result of this is:

![](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b84c2fecb4270ed7af001644f6e890b3d143285d.png)

- and search act like this document even not exists

![](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2d6a5f2429d9616e98ccb37b6c2f06f6ed42779e.png)

Why is GET performing update ? I didn't find anything in documentation.

Thank you

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 12, 2017, 9:55am UTC](https://discuss.elastic.co/t/possible-bug-get-with-empty-body-update-document/88993/2 "2017-06-12T09:55:47Z")

</div>

It's a bug of CONSOLE.  
Actually GET is replaced with POST when you provide a body.

That causes what you see.

---

<div class="post-metadata">

**Author:** ![David\_Dave\_Orvisky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_dave_orvisky/32/18985_2.png) [@David\_Dave\_Orvisky](https://discuss.elastic.co/u/David_Dave_Orvisky)\
**Post date:** [June 12, 2017, 10:32am UTC](https://discuss.elastic.co/t/possible-bug-get-with-empty-body-update-document/88993/3 "2017-06-12T10:32:54Z")

</div>

Thank you for reply. I looked to Developer console and as you said, it makes POST instead of GET.

Thank you.

---

<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:** [July 10, 2017, 10:33am UTC](https://discuss.elastic.co/t/possible-bug-get-with-empty-body-update-document/88993/4 "2017-07-10T10:33:13Z")

</div>

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