# Data in different indexes

**URL:** <https://discuss.elastic.co/t/data-in-different-indexes/68652>\
**Category:** Elasticsearch\
**Created:** [December 11, 2016, 9:34pm UTC](https://discuss.elastic.co/t/data-in-different-indexes/68652 "2016-12-11T21:34:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eshlox](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eshlox/32/13792_2.png) [@eshlox](https://discuss.elastic.co/u/eshlox)\
**Post date:** [December 11, 2016, 9:34pm UTC](https://discuss.elastic.co/t/data-in-different-indexes/68652/1 "2016-12-11T21:34:07Z")

</div>

Hi, let's say that I need to index data from 50 different sources (at the beginning). The data will have the same structure. Once a day (different hours) I will need to update the data (I don't care about the old data so remove the old data and replace that with a new data). Is it a good idea to keep each source data in a different index? (I will need to make a search query using all those indexes)

My idea at the moment: create index for every source, create aliases, when I need to update the data I can create a new index for single source, put the new data, change alias, remove old index. Will it be efficient?

I know that I can use a single index and put each source in a different type but I don't know if it's possible to replace the data (remove and add a new) without the impact on search.

Any better ideas?

---

<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:** [December 12, 2016, 1:17am UTC](https://discuss.elastic.co/t/data-in-different-indexes/68652/2 "2016-12-12T01:17:28Z")

</div>

If you want to keep around the old data this would be the best idea!

---

<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 9, 2017, 1:17am UTC](https://discuss.elastic.co/t/data-in-different-indexes/68652/3 "2017-01-09T01:17:32Z")

</div>

Closed on January 9, 2017, 1:17am UTC

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