# Total index count descreasing as I'm loading data

**URL:** <https://discuss.elastic.co/t/total-index-count-descreasing-as-im-loading-data/12194>\
**Category:** Elasticsearch\
**Created:** [May 30, 2013, 7:49pm UTC](https://discuss.elastic.co/t/total-index-count-descreasing-as-im-loading-data/12194 "2013-05-30T19:49:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_O](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave_o/32/69398_2.png) [@Dave\_O](https://discuss.elastic.co/u/Dave_O)\
**Post date:** [May 30, 2013, 7:49pm UTC](https://discuss.elastic.co/t/total-index-count-descreasing-as-im-loading-data/12194/1 "2013-05-30T19:49:58Z")

</div>

Hello,  
I'm using elasticsearch 0.90.

And have a few thousand files with 5K records a piece.

I"m doing a simple linux shell for script to to load all of the files in  
the directory.

I have a total fo 5 shards and 2 for replication. I'm on a 2 node server.

When I periodically check the count the total number returned is less then  
the previous number in some cases.

I'm doing

curl -XGET '[http://localhost:9200/indexname/indextype/\_count?pretty=1](http://localhost:9200/indexname/indextype/_count?pretty=1)'

Why would the count ever decrease.

My loader is creating new ID's each time it loads.

My refresh rate is set at 10s.

Any ideas?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Dave\_O](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave_o/32/69398_2.png) [@Dave\_O](https://discuss.elastic.co/u/Dave_O)\
**Post date:** [May 30, 2013, 7:51pm UTC](https://discuss.elastic.co/t/total-index-count-descreasing-as-im-loading-data/12194/2 "2013-05-30T19:51:50Z")

</div>

On Thursday, May 30, 2013 3:49:58 PM UTC-4, Dave O wrote:

> Hello,  
> I'm using elasticsearch 0.90.
> 
> And have a few thousand files with 5K records a piece.
> 
> I"m doing a simple linux shell for script to to load all of the files in  
> the directory.
> 
> I have a total fo 5 shards and 2 for replication. I'm on a 2 node  
> server.
> 
> When I periodically check the count the total number returned is less then  
> the previous number in some cases.
> 
> I'm doing
> 
> curl -XGET '[http://localhost:9200/indexname/indextype/\_count?pretty=1](http://localhost:9200/indexname/indextype/_count?pretty=1)'
> 
> Why would the count ever decrease.
> 
> My loader is creating new ID's each time it loads.
> 
> My refresh rate is set at 10s.
> 
> Any ideas?
> 
> Thanks

--Just an update to this.  
--In all cases the total shards shows 5 successful so looks like all shards  
have reported.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:33am UTC](https://discuss.elastic.co/t/total-index-count-descreasing-as-im-loading-data/12194/3 "2017-07-06T02:33:47Z")

</div>


