# Heelp

**URL:** <https://discuss.elastic.co/t/heelp/142937>\
**Category:** Elasticsearch\
**Created:** [August 3, 2018, 3:17pm UTC](https://discuss.elastic.co/t/heelp/142937 "2018-08-03T15:17:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![meriem\_el\_boumashoul](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@meriem\_el\_boumashoul](https://discuss.elastic.co/u/meriem_el_boumashoul)\
**Post date:** [August 3, 2018, 3:17pm UTC](https://discuss.elastic.co/t/heelp/142937/1 "2018-08-03T15:17:08Z")

</div>

I need to create a mappings for 4 type in one index elasticsearch 6.3.0  
any idea??

---

<div class="post-metadata">

**Author:** ![Charaf\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charaf_ahmed/32/30467_2.png) [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)\
**Post date:** [August 3, 2018, 3:26pm UTC](https://discuss.elastic.co/t/heelp/142937/2 "2018-08-03T15:26:32Z")

</div>

I think this link could help you : [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html)

---

<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:** [August 3, 2018, 3:28pm UTC](https://discuss.elastic.co/t/heelp/142937/3 "2018-08-03T15:28:55Z")

</div>

You can't have more than one type per index.

---

<div class="post-metadata">

**Author:** ![meriem\_el\_boumashoul](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@meriem\_el\_boumashoul](https://discuss.elastic.co/u/meriem_el_boumashoul)\
**Post date:** [August 3, 2018, 3:51pm UTC](https://discuss.elastic.co/t/heelp/142937/4 "2018-08-03T15:51:19Z")

</div>

so i have a sql database and i need to switch to a nosql database  
in my sql database I have 4 tables, so I need to create 4 types in the same index  
if you have any other idea than this one I will be grateful ...

---

<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:** [August 3, 2018, 5:01pm UTC](https://discuss.elastic.co/t/heelp/142937/5 "2018-08-03T17:01:44Z")

</div>

> in my sql database I have 4 tables, so I need to create 4 types in the same index

That's a wrong assumption IMO.  
Switching from a relation model to a document oriented model is something you need to think about.

> if you have any other idea than this one I will be grateful ...

But I'm going to answer your question anyway: you can create one index per table.  
But again, I feel it could be a wrong approach.

---

<div class="post-metadata">

**Author:** ![meriem\_el\_boumashoul](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@meriem\_el\_boumashoul](https://discuss.elastic.co/u/meriem_el_boumashoul)\
**Post date:** [August 4, 2018, 11:49am UTC](https://discuss.elastic.co/t/heelp/142937/6 "2018-08-04T11:49:39Z")

</div>

oook thank you

---

<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:** [September 1, 2018, 11:49am UTC](https://discuss.elastic.co/t/heelp/142937/7 "2018-09-01T11:49:48Z")

</div>

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