# Expand sharding on exist index

**URL:** https://discuss.elastic.co/t/expand-sharding-on-exist-index/23056
**Category:** Elasticsearch
**Created:** [April 2, 2015, 8:31am UTC](https://discuss.elastic.co/t/expand-sharding-on-exist-index/23056 "2015-04-02T08:31:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Grigory\_Rubstein](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grigory_rubstein/32/793_2.png) [@Grigory\_Rubstein](https://discuss.elastic.co/u/Grigory_Rubstein)
#### Post date: [April 2, 2015, 8:31am UTC](https://discuss.elastic.co/t/expand-sharding-on-exist-index/23056/1 "2015-04-02T08:31:23Z")

</div>

Hi

Is its possible to change number of shards on exist index, where part of  
the types does not stored fields ?

--  
This message may contain confidential and/or privileged information.  
If you are not the addressee or authorized to receive this on behalf of the  
addressee you must not use, copy, disclose or take action based on this  
message or any information herein.  
If you have received this message in error, please advise the sender  
immediately by reply email and delete this message. Thank you.

--  
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/af54f124-9480-407b-bf08-a9edbf8460d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/af54f124-9480-407b-bf08-a9edbf8460d3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [April 2, 2015, 8:35am UTC](https://discuss.elastic.co/t/expand-sharding-on-exist-index/23056/2 "2015-04-02T08:35:27Z")

</div>

No.

But you can create a new index with more shards and if you are using an alias link it to the two indices.  
That’s how you can add more shards to an index (virtual index aka alias)

Or you need to reindex all from the old index to the new index.

HTH

--  
David Pilato - Developer | Evangelist

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co/)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 2 avr. 2015 à 10:31, Grigory Rubstein [grigoryr@liveperson.com](mailto:grigoryr@liveperson.com) a écrit :
> 
> Hi
> 
> Is its possible to change number of shards on exist index, where part of the types does not stored fields ?
> 
> This message may contain confidential and/or privileged information.  
> If you are not the addressee or authorized to receive this on behalf of the addressee you must not use, copy, disclose or take action based on this message or any information herein.  
> If you have received this message in error, please advise the sender immediately by reply email and delete this message. Thank you.
> 
> --  
> 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) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/af54f124-9480-407b-bf08-a9edbf8460d3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/af54f124-9480-407b-bf08-a9edbf8460d3%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/af54f124-9480-407b-bf08-a9edbf8460d3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/af54f124-9480-407b-bf08-a9edbf8460d3%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [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/983AFEAC-9310-4BC6-AC9E-7E97E58C6D8A%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/983AFEAC-9310-4BC6-AC9E-7E97E58C6D8A%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Grigory\_Rubstein](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grigory_rubstein/32/793_2.png) [@Grigory\_Rubstein](https://discuss.elastic.co/u/Grigory_Rubstein)
#### Post date: [April 2, 2015, 11:43am UTC](https://discuss.elastic.co/t/expand-sharding-on-exist-index/23056/3 "2015-04-02T11:43:05Z")

</div>

ThaT  
Thank you for the response ,  
regarding second option, i want to reindex current index, as the  
performance is already very slow and we can leave it as is.  
the problem is that we have types that not stored ( "\_source" : { "enabled"  
: false } ) how can we reindex such doc types without retrieving them ? is  
there any special api for this purpose ?

On Thursday, April 2, 2015 at 11:31:23 AM UTC+3, Grigory Rubstein wrote:

> Hi
> 
> Is its possible to change number of shards on exist index, where part of  
> the types does not stored fields ?
> 
> This message may contain confidential and/or privileged information.  
> If you are not the addressee or authorized to receive this on behalf of  
> the addressee you must not use, copy, disclose or take action based on this  
> message or any information herein.  
> If you have received this message in error, please advise the sender  
> immediately by reply email and delete this message. Thank you.

--  
This message may contain confidential and/or privileged information.  
If you are not the addressee or authorized to receive this on behalf of the  
addressee you must not use, copy, disclose or take action based on this  
message or any information herein.  
If you have received this message in error, please advise the sender  
immediately by reply email and delete this message. Thank you.

--  
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/475226eb-fb9d-4f8a-ae60-f71ac58670ea%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/475226eb-fb9d-4f8a-ae60-f71ac58670ea%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [April 2, 2015, 9:30pm UTC](https://discuss.elastic.co/t/expand-sharding-on-exist-index/23056/4 "2015-04-02T21:30:05Z")

</div>

You will have to reindex from an external source then.

On 2 April 2015 at 22:43, Grigory Rubstein [grigoryr@liveperson.com](mailto:grigoryr@liveperson.com) wrote:

> ThaT  
> Thank you for the response ,  
> regarding second option, i want to reindex current index, as the  
> performance is already very slow and we can leave it as is.  
> the problem is that we have types that not stored ( "\_source" : {  
> "enabled" : false } ) how can we reindex such doc types without retrieving  
> them ? is there any special api for this purpose ?
> 
> On Thursday, April 2, 2015 at 11:31:23 AM UTC+3, Grigory Rubstein wrote:
> 
> > Hi
> > 
> > Is its possible to change number of shards on exist index, where part of  
> > the types does not stored fields ?
> > 
> > This message may contain confidential and/or privileged information.  
> > If you are not the addressee or authorized to receive this on behalf of  
> > the addressee you must not use, copy, disclose or take action based on this  
> > message or any information herein.  
> > If you have received this message in error, please advise the sender  
> > immediately by reply email and delete this message. Thank you.
> 
> This message may contain confidential and/or privileged information.  
> If you are not the addressee or authorized to receive this on behalf of  
> the addressee you must not use, copy, disclose or take action based on this  
> message or any information herein.  
> If you have received this message in error, please advise the sender  
> immediately by reply email and delete this message. Thank you.
> 
> --  
> 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/475226eb-fb9d-4f8a-ae60-f71ac58670ea%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/475226eb-fb9d-4f8a-ae60-f71ac58670ea%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/475226eb-fb9d-4f8a-ae60-f71ac58670ea%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/475226eb-fb9d-4f8a-ae60-f71ac58670ea%40googlegroups.com?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/CAEYi1X8OJN5vQRmyLkfXxxHqC1RkfkFVP5O5FeHnMxXDfr0nWA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8OJN5vQRmyLkfXxxHqC1RkfkFVP5O5FeHnMxXDfr0nWA%40mail.gmail.com).  
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, 12:21am UTC](https://discuss.elastic.co/t/expand-sharding-on-exist-index/23056/5 "2017-07-06T00:21:59Z")

</div>


