# Merge 500 daily indices to weekly / Reindex data

**URL:** https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614
**Category:** Elasticsearch
**Created:** [June 13, 2019, 10:35am UTC](https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614 "2019-06-13T10:35:02Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![test\_qweqwe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/test_qweqwe/32/94750_2.png) [@test\_qweqwe](https://discuss.elastic.co/u/test_qweqwe)
#### Post date: [June 13, 2019, 10:35am UTC](https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614/1 "2019-06-13T10:35:03Z")

</div>

Hi there.

1. How to merge 500 daily indices to weekly? Will this increase the search speed? If it possible?  
1.1) What can increase speed of search expect of my hardware? 😅
2. What is the best way to reindex data? Because, there are many wrong fields that I need reindex with updated config.

---

<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: [June 13, 2019, 10:42am UTC](https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614/2 "2019-06-13T10:42:20Z")

</div>

Try something like this - [Kibana only display logo no content -elasticsearch error shard](https://discuss.elastic.co/t/kibana-only-display-logo-no-content-elasticsearch-error-shard/185529/11)

---

<div class="post-metadata">

### Author: ![test\_qweqwe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/test_qweqwe/32/94750_2.png) [@test\_qweqwe](https://discuss.elastic.co/u/test_qweqwe)
#### Post date: [June 13, 2019, 10:48am UTC](https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614/3 "2019-06-13T10:48:59Z")

</div>

But will it increase the search speed?

---

<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: [June 13, 2019, 10:50am UTC](https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614/4 "2019-06-13T10:50:34Z")

</div>

It should, yes.

---

<div class="post-metadata">

### Author: ![test\_qweqwe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/test_qweqwe/32/94750_2.png) [@test\_qweqwe](https://discuss.elastic.co/u/test_qweqwe)
#### Post date: [June 13, 2019, 11:01am UTC](https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614/5 "2019-06-13T11:01:38Z")

</div>

Okay, so could you please explain me more details about this:

```
PUT lcch-cisco-2018.03
    POST _reindex
    {
      "source": {
        "remote": {
          "host": "http://localhost:9200"
        },
        "index": "lcch-cisco-2018.03.*"
      },
      "dest": {
        "index": "lcch-cisco-2018.03"
      }
    }

```

It's mean that all indexers _ **random-name-2018.03.** _ will as _ **random-name 2018.3** _ as month? And I can by this method to merge to weekly? Yes?  
So, how to do it not manual by this action? How to setup it automatic, so it will be automatically generates weekly indices?

And they will be automatic updated with my new config and it's will fix wrong field, or for this step I need to do something else?

---

<div class="post-metadata">

### Author: ![test\_qweqwe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/test_qweqwe/32/94750_2.png) [@test\_qweqwe](https://discuss.elastic.co/u/test_qweqwe)
#### Post date: [June 13, 2019, 11:02am UTC](https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614/6 "2019-06-13T11:02:28Z")

</div>

@warkolm  
This tool [https://www.npmjs.com/package/elasticsearch-reindex](https://www.npmjs.com/package/elasticsearch-reindex)  
make the same as your script?

---

<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: [June 13, 2019, 11:05am UTC](https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614/7 "2019-06-13T11:05:24Z")

</div>

If you want it automatic then look at using ILM - [https://www.elastic.co/guide/en/elasticsearch///reference/master/ilm-start.html](https://www.elastic.co/guide/en/elasticsearch///reference/master/ilm-start.html)

---

<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 11, 2019, 11:05am UTC](https://discuss.elastic.co/t/merge-500-daily-indices-to-weekly-reindex-data/185614/8 "2019-07-11T11:05:24Z")

</div>

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