# Shards

**URL:** <https://discuss.elastic.co/t/shards/19450>\
**Category:** Elasticsearch\
**Created:** [August 25, 2014, 9:55pm UTC](https://discuss.elastic.co/t/shards/19450 "2014-08-25T21:55:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiesi](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wiesi](https://discuss.elastic.co/u/wiesi)\
**Post date:** [August 25, 2014, 9:55pm UTC](https://discuss.elastic.co/t/shards/19450/1 "2014-08-25T21:55:28Z")

</div>

Hi folks,

I am using a single Node-Cluster (v1.3.2) on my PC, and I was wondering that  
there are always 5 shards in the file-system (separate Lucene-indices), no  
matter how many I configure in in elasticsearch.yml or programmatically with  
Java-API (loadFromSource with JSON-String). Do I missunderstand something?

Many thanks!

Markus 😉

BTW: Here´s my JSON for the settings:

{  
"analysis":{ ... },  
"settings":{  
"index":{  
"number\_of\_replicas":1,  
"number\_of\_shards":3  
}  
}  
}

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/009901cfc0af%2448b7ab40%24da2701c0%24%40codefreun.de](https://groups.google.com/d/msgid/elasticsearch/009901cfc0af%2448b7ab40%24da2701c0%24%40codefreun.de).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![wiesi](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wiesi](https://discuss.elastic.co/u/wiesi)\
**Post date:** [August 26, 2014, 11:12am UTC](https://discuss.elastic.co/t/shards/19450/2 "2014-08-26T11:12:22Z")

</div>

Hi,

I´ve found the problem, the JSON-structure was not correct, it has to be  
this if you are using the JAVA-API:

{  
"analysis":{ ... },

"index":{  
"number\_of\_replicas":1,  
"number\_of\_shards":3

}  
}

Thanks

Markus 😉

Von: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)]  
Im Auftrag von Markus Wiesenbacher  
Gesendet: Montag, 25. August 2014 23:55  
An: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
Betreff: Shards

Hi folks,

I am using a single Node-Cluster (v1.3.2) on my PC, and I was wondering that  
there are always 5 shards in the file-system (separate Lucene-indices), no  
matter how many I configure in in elasticsearch.yml or programmatically with  
Java-API (loadFromSource with JSON-String). Do I missunderstand something?

Many thanks!

Markus 😉

BTW: Here´s my JSON for the settings:

{  
"analysis":{ ... },  
"settings":{  
"index":{  
"number\_of\_replicas":1,  
"number\_of\_shards":3  
}  
}  
}

--  
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).  
To view this discussion on the web visit  
[https://groups.google.com/d/msgid/elasticsearch/009901cfc0af%2448b7ab40%24da](https://groups.google.com/d/msgid/elasticsearch/009901cfc0af%2448b7ab40%24da)  
2701c0%24%40codefreun.de  
\<[https://groups.google.com/d/msgid/elasticsearch/009901cfc0af%2448b7ab40%24d](https://groups.google.com/d/msgid/elasticsearch/009901cfc0af%2448b7ab40%24d)  
a2701c0%24%40codefreun.de?utm\_medium=email&utm\_source=footer\> .  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/001a01cfc11e%249c6973d0%24d53c5b70%24%40codefreun.de](https://groups.google.com/d/msgid/elasticsearch/001a01cfc11e%249c6973d0%24d53c5b70%24%40codefreun.de).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:06am UTC](https://discuss.elastic.co/t/shards/19450/3 "2017-07-06T01:06:32Z")

</div>

Closed on July 6, 2017, 1:06am UTC


