# How to reindex

**URL:** <https://discuss.elastic.co/t/how-to-reindex/11521>\
**Category:** Elasticsearch\
**Created:** [April 10, 2013, 5:44am UTC](https://discuss.elastic.co/t/how-to-reindex/11521 "2013-04-10T05:44:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![avin](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@avin](https://discuss.elastic.co/u/avin)\
**Post date:** [April 10, 2013, 5:44am UTC](https://discuss.elastic.co/t/how-to-reindex/11521/1 "2013-04-10T05:44:33Z")

</div>

Apologies if this has already been asked. I was not able to find  
references. I had to update the settings on my index.

curl -XPUT '[http://localhost:9200/test1/\_settings](http://localhost:9200/test1/_settings)' -d '{  
"index": {  
"analysis" :{  
"analyzer": {  
"default": {  
"type" : "custom",  
"tokenizer" : "uax\_url\_email",  
"filter" : ["standard", "stop"]  
}  
}  
}  
}  
}  
'

Now how do I kickstart the reindexing process ?

--  
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:** ![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 10, 2013, 6:39am UTC](https://discuss.elastic.co/t/how-to-reindex/11521/2 "2013-04-10T06:39:44Z")

</div>

Remove your type (it will remove all your docs)  
Put the mapping using the PUT Mapping API  
Send again all your docs

Is it what you were looking for?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 10 avr. 2013 à 07:44, [avinsemail@gmail.com](mailto:avinsemail@gmail.com) a écrit :

Apologies if this has already been asked. I was not able to find references. I had to update the settings on my index.

curl -XPUT '[http://localhost:9200/test1/\_settings](http://localhost:9200/test1/_settings)' -d '{  
"index": {  
"analysis" :{  
"analyzer": {  
"default": {  
"type" : "custom",  
"tokenizer" : "uax\_url\_email",  
"filter" : ["standard", "stop"]  
}  
}  
}  
}  
}  
'

## Now how do I kickstart the reindexing process ?

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).

--  
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:** ![avin](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@avin](https://discuss.elastic.co/u/avin)\
**Post date:** [April 10, 2013, 5:04pm UTC](https://discuss.elastic.co/t/how-to-reindex/11521/3 "2013-04-10T17:04:14Z")

</div>

I dont want to recreate the index and send in all the docs again. The  
limitation being I dont have any of the docs which have already indexed. Is  
there any other way redo the indexing ?

On Tuesday, April 9, 2013 11:39:44 PM UTC-7, David Pilato wrote:

> Remove your type (it will remove all your docs)  
> Put the mapping using the PUT Mapping API  
> Send again all your docs
> 
> Is it what you were looking for?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 10 avr. 2013 à 07:44, [avins...@gmail.com](mailto:avins...@gmail.com) \<javascript:\> a écrit :
> 
> Apologies if this has already been asked. I was not able to find  
> references. I had to update the settings on my index.
> 
> curl -XPUT '[http://localhost:9200/test1/\_settings](http://localhost:9200/test1/_settings)' -d '{  
> "index": {  
> "analysis" :{  
> "analyzer": {  
> "default": {  
> "type" : "custom",  
> "tokenizer" : "uax\_url\_email",  
> "filter" : ["standard", "stop"]  
> }  
> }  
> }  
> }  
> }  
> '
> 
> Now how do I kickstart the reindexing process ?
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [April 11, 2013, 1:39am UTC](https://discuss.elastic.co/t/how-to-reindex/11521/4 "2013-04-11T01:39:10Z")

</div>

In that case you need to create a new index and index into that one. This  
plugin should help:

> **[GitHub - karussell/elasticsearch-reindex: Simple re-indexing. To backup,...](https://github.com/karussell/elasticsearch-reindex)**
>
> Simple re-indexing. To backup, apply index settings changes and more ElasticMagic - GitHub - karussell/elasticsearch-reindex: Simple re-indexing. To backup, apply index settings changes and more El...

Using index aliasing should allow you to do this seamlessly and swap the  
aliases to make the new one live.

Best Regards,  
Paul

On Wednesday, April 10, 2013 11:04:14 AM UTC-6, [avins...@gmail.com](mailto:avins...@gmail.com) wrote:

> I dont want to recreate the index and send in all the docs again. The  
> limitation being I dont have any of the docs which have already indexed. Is  
> there any other way redo the indexing ?
> 
> On Tuesday, April 9, 2013 11:39:44 PM UTC-7, David Pilato wrote:
> 
> > Remove your type (it will remove all your docs)  
> > Put the mapping using the PUT Mapping API  
> > Send again all your docs
> > 
> > Is it what you were looking for?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 10 avr. 2013 à 07:44, [avins...@gmail.com](mailto:avins...@gmail.com) a écrit :
> > 
> > Apologies if this has already been asked. I was not able to find  
> > references. I had to update the settings on my index.
> > 
> > curl -XPUT '[http://localhost:9200/test1/\_settings](http://localhost:9200/test1/_settings)' -d '{  
> > "index": {  
> > "analysis" :{  
> > "analyzer": {  
> > "default": {  
> > "type" : "custom",  
> > "tokenizer" : "uax\_url\_email",  
> > "filter" : ["standard", "stop"]  
> > }  
> > }  
> > }  
> > }  
> > }  
> > '
> > 
> > Now how do I kickstart the reindexing process ?
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:** ![naisanza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naisanza/32/44808_2.png) [@naisanza](https://discuss.elastic.co/u/naisanza)\
**Post date:** [July 15, 2015, 5:23am UTC](https://discuss.elastic.co/t/how-to-reindex/11521/5 "2015-07-15T05:23:39Z")

</div>

@ppearcy Wait. You can't take an elasticsearch input and output it to the same index?

---

<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:01am UTC](https://discuss.elastic.co/t/how-to-reindex/11521/6 "2017-07-06T00:01:24Z")

</div>


