# How did I create a \_mget id item?

**URL:** <https://discuss.elastic.co/t/how-did-i-create-a--mget-id-item/36159>\
**Category:** Elasticsearch\
**Created:** [December 2, 2015, 12:02pm UTC](https://discuss.elastic.co/t/how-did-i-create-a--mget-id-item/36159 "2015-12-02T12:02:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serge\_Aluker](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Serge\_Aluker](https://discuss.elastic.co/u/Serge_Aluker)\
**Post date:** [December 2, 2015, 12:02pm UTC](https://discuss.elastic.co/t/how-did-i-create-a--mget-id-item/36159/1 "2015-12-02T12:02:02Z")

</div>

We are running 1.7.3 on 3 nodes, 2 of which are data nodes. Index in question has 2 shards and 2 replicas.

We use `POST /index/type/_mget` with body `{ids:[...]}` on almost every request to our app and have never had issues. Today we had 3 cases where this exact request actually created a doc with id of "\_mget". Instead of getting the expected "docs" key we got (on the 3rd case):

```
{
    "_id": "_mget",
    "_index": "main_exelon",
    "_type": "series",
    "_version": 3, 
    "created": False
}

```

We can't GET the resulting doc directly, but doing this search:

```
{
    "query": {"ids": {"values": ["_mget"]}}
}

```

returns:

```
  "hits": [
     {
        "_index": "index",
        "_type": "type",
        "_id": "_mget",
        "_score": 1,
        "_source": {
           "ids": [
              "ki1ZMZPoPgMIQpe"
           ]
        }
     }

```

How is making this \_id even possible? We can't replicate this, but it has happened in production 3 times now.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 3, 2015, 5:43am UTC](https://discuss.elastic.co/t/how-did-i-create-a--mget-id-item/36159/2 "2015-12-03T05:43:07Z")

</div>

I'd use `GET` instead of PUT to stop the creation of the documents. [The docs](https://www.elastic.co/guide/en/elasticsearch/guide/current/_retrieving_multiple_documents.html) also reference the use of `GET`.

---

<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 5, 2017, 11:34pm UTC](https://discuss.elastic.co/t/how-did-i-create-a--mget-id-item/36159/3 "2017-07-05T23:34:00Z")

</div>

Closed on July 5, 2017, 11:34pm UTC


