# Understanding segments command

**URL:** <https://discuss.elastic.co/t/understanding-segments-command/110738>\
**Category:** Elasticsearch\
**Created:** [December 7, 2017, 7:53pm UTC](https://discuss.elastic.co/t/understanding-segments-command/110738 "2017-12-07T19:53:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mannoj87](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mannoj87](https://discuss.elastic.co/u/mannoj87)\
**Post date:** [December 7, 2017, 7:53pm UTC](https://discuss.elastic.co/t/understanding-segments-command/110738/1 "2017-12-07T19:53:31Z")

</div>

curl '[http://localhost:9200/datavasanth-21-9-2017/\_segments?pretty=true](http://localhost:9200/datavasanth-21-9-2017/_segments?pretty=true)'  
{  
"\_shards" : {  
"total" : 10,  
"successful" : 0,  
"failed" : 0  
},  
"indices" : { }  
}  
does it mean the data has been marked for delete but index exist?

The above index datavasanth-21-9-2017 is under unassigned shard.

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [December 15, 2017, 10:34am UTC](https://discuss.elastic.co/t/understanding-segments-command/110738/2 "2017-12-15T10:34:46Z")

</div>

this means there are 10 shards but non of them is allocated so we can't tell how many segments are there.

---

<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:** [January 12, 2018, 10:34am UTC](https://discuss.elastic.co/t/understanding-segments-command/110738/3 "2018-01-12T10:34:46Z")

</div>

Closed on January 12, 2018, 10:34am UTC

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