# How to create mulitple indices

**URL:** <https://discuss.elastic.co/t/how-to-create-mulitple-indices/268920>\
**Category:** Elasticsearch\
**Created:** [March 31, 2021, 2:04pm UTC](https://discuss.elastic.co/t/how-to-create-mulitple-indices/268920 "2021-03-31T14:04:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shushil\_Shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shushil_shankar/32/84391_2.png) [@Shushil\_Shankar](https://discuss.elastic.co/u/Shushil_Shankar)\
**Post date:** [March 31, 2021, 2:04pm UTC](https://discuss.elastic.co/t/how-to-create-mulitple-indices/268920/1 "2021-03-31T14:04:26Z")

</div>

Good morning eveyyone!

I have a question about the creation of a multiple indices. Currenlty in my project i have one index mutileple types. Now i need to migrate new version 7.12.

How to do i create multiple indicies and mapping at once?

Thanks

---

<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:** [March 31, 2021, 2:43pm UTC](https://discuss.elastic.co/t/how-to-create-mulitple-indices/268920/2 "2021-03-31T14:43:40Z")

</div>

Welcome!

You can't.

Read

> **[Removal of mapping types in Elasticsearch 6.0](https://www.elastic.co/blog/removal-of-mapping-types-elasticsearch)**
>
> Mapping types are going away. Elasticsearch 6.0 supports a single mapping type per index only, and it represents the first step on the way to removing types altogether.

---

<div class="post-metadata">

**Author:** ![Shushil\_Shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shushil_shankar/32/84391_2.png) [@Shushil\_Shankar](https://discuss.elastic.co/u/Shushil_Shankar)\
**Post date:** [March 31, 2021, 4:39pm UTC](https://discuss.elastic.co/t/how-to-create-mulitple-indices/268920/3 "2021-03-31T16:39:24Z")

</div>

Thanks for the reply!

How do we access multiple indices at sametime in 7.12?

---

<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:** [March 31, 2021, 9:16pm UTC](https://discuss.elastic.co/t/how-to-create-mulitple-indices/268920/4 "2021-03-31T21:16:08Z")

</div>

```
GET /index1,index2/_search
```

---

<div class="post-metadata">

**Author:** ![Shushil\_Shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shushil_shankar/32/84391_2.png) [@Shushil\_Shankar](https://discuss.elastic.co/u/Shushil_Shankar)\
**Post date:** [April 2, 2021, 9:43am UTC](https://discuss.elastic.co/t/how-to-create-mulitple-indices/268920/5 "2021-04-02T09:43:59Z")

</div>

I working with NEST. So I need to access multiple indexes at the same time.

---

<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, 2021, 10:40am UTC](https://discuss.elastic.co/t/how-to-create-mulitple-indices/268920/6 "2021-04-02T10:40:48Z")

</div>

Sure. Not a problem.

---

<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:** [April 30, 2021, 10:41am UTC](https://discuss.elastic.co/t/how-to-create-mulitple-indices/268920/7 "2021-04-30T10:41:00Z")

</div>

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