# All my documents disappeared. What happened?

**URL:** <https://discuss.elastic.co/t/all-my-documents-disappeared-what-happened/7762>\
**Category:** Elasticsearch\
**Created:** [May 18, 2012, 3:54pm UTC](https://discuss.elastic.co/t/all-my-documents-disappeared-what-happened/7762 "2012-05-18T15:54:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamie\_Gaines](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jamie\_Gaines](https://discuss.elastic.co/u/Jamie_Gaines)\
**Post date:** [May 18, 2012, 3:54pm UTC](https://discuss.elastic.co/t/all-my-documents-disappeared-what-happened/7762/1 "2012-05-18T15:54:26Z")

</div>

Hello, everyone.

I'm running a single index on a 1-shard, 1-node index on Windows  
2008. The index is named "vrs" and it holds a mapping for one  
document type called "listing".

I've been feeding roughly 100,000 documents into the index over the  
last few days with a Windows service that I wrote in C#. I'm using  
the excellent NEST library to interface with my ES instance.

I woke up this morning to discover that all of my documents had simply  
vanished from my index. There was nothing there anymore. My service  
doesn't have any calls that would delete the index, though it does  
remove individual documents when they meet certain criteria.

The only clue I have as to what happened are these entries in the log  
file from yesterday...

[2012-05-17 15:20:42,203][INFO][org.elasticsearch.cluster.metadata]  
[Tutinax the Mountain-Mover] [[vrs]] remove\_mapping [listing]  
[2012-05-17 15:20:42,948][INFO][org.elasticsearch.cluster.metadata]  
[Tutinax the Mountain-Mover] [vrs] update\_mapping [listing] (dynamic)

There are tons of these that started about 15:20 yesterday. I've had  
the instance up for a week and this is the first log entry besides  
those at the instance startup.

Any clue what I've done wrong here? If the shard gets too big would  
it simply empty itself out? If all I'm doing is adding and deleting  
the same document type should this happen?

Any advice you have would be much appreciated. I'm happy to provide  
any other information you might need.

Cheers,  
Jamie

---

<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:** [May 18, 2012, 4:11pm UTC](https://discuss.elastic.co/t/all-my-documents-disappeared-what-happened/7762/2 "2012-05-18T16:11:32Z")

</div>

Hi,

It looks like you sent a command like :

curl -XDELETE localhost:9200/vrs/listing/

Instead of :

curl -XDELETE localhost:9200/vrs/listing/1

The first command delete the type and generate this log entry:

> [2012-05-17 15:20:42,203][INFO][org.elasticsearch.cluster.metadata]  
> [Tutinax the Mountain-Mover] [[vrs]] remove\_mapping [listing]

Check your code but I think that the problem occurs when you try to remove a doc.

HTH  
David

Le 18 mai 2012 à 17:54, Jamie Gaines [jamie.gaines@gmail.com](mailto:jamie.gaines@gmail.com) a écrit :

> Hello, everyone.
> 
> I'm running a single index on a 1-shard, 1-node index on Windows  
> 2008. The index is named "vrs" and it holds a mapping for one  
> document type called "listing".
> 
> I've been feeding roughly 100,000 documents into the index over the  
> last few days with a Windows service that I wrote in C#. I'm using  
> the excellent NEST library to interface with my ES instance.
> 
> I woke up this morning to discover that all of my documents had simply  
> vanished from my index. There was nothing there anymore. My service  
> doesn't have any calls that would delete the index, though it does  
> remove individual documents when they meet certain criteria.
> 
> The only clue I have as to what happened are these entries in the log  
> file from yesterday...
> 
> [2012-05-17 15:20:42,203][INFO][org.elasticsearch.cluster.metadata]  
> [Tutinax the Mountain-Mover] [[vrs]] remove\_mapping [listing]  
> [2012-05-17 15:20:42,948][INFO][org.elasticsearch.cluster.metadata]  
> [Tutinax the Mountain-Mover] [vrs] update\_mapping [listing] (dynamic)
> 
> There are tons of these that started about 15:20 yesterday. I've had  
> the instance up for a week and this is the first log entry besides  
> those at the instance startup.
> 
> Any clue what I've done wrong here? If the shard gets too big would  
> it simply empty itself out? If all I'm doing is adding and deleting  
> the same document type should this happen?
> 
> Any advice you have would be much appreciated. I'm happy to provide  
> any other information you might need.
> 
> Cheers,  
> Jamie

---

<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 6, 2017, 3:28am UTC](https://discuss.elastic.co/t/all-my-documents-disappeared-what-happened/7762/3 "2017-07-06T03:28:11Z")

</div>


