# Dynamic mapping no Logstash

**URL:** <https://discuss.elastic.co/t/dynamic-mapping-no-logstash/86736>\
**Category:** Elasticsearch\
**Created:** [May 22, 2017, 7:56pm UTC](https://discuss.elastic.co/t/dynamic-mapping-no-logstash/86736 "2017-05-22T19:56:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mka](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mka](https://discuss.elastic.co/u/mka)\
**Post date:** [May 22, 2017, 7:56pm UTC](https://discuss.elastic.co/t/dynamic-mapping-no-logstash/86736/1 "2017-05-22T19:56:36Z")

</div>

Hello, I am looking for using dynamic mapping (not creating any schema and not using Logstash), I would like to ingest 4 different types of files on one Index from structured data set.  
Can any one point some examples.

Thanks  
mka

---

<div class="post-metadata">

**Author:** ![sharongur](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Post date:** [May 23, 2017, 10:02am UTC](https://discuss.elastic.co/t/dynamic-mapping-no-logstash/86736/2 "2017-05-23T10:02:59Z")

</div>

your example seems pretty easy.

Create index [link](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html)

then just send 4 documents with 4 different types [Link](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html)

just pay attention that if you send JSON with the same field name but different field type ( EG name: 123 and name:"some name") you wont be able to insert the document as the index shares all the fields of his types and they need to be of the same type.  
If you follow these rules you should be fine

---

<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:** [June 20, 2017, 10:03am UTC](https://discuss.elastic.co/t/dynamic-mapping-no-logstash/86736/3 "2017-06-20T10:03:11Z")

</div>

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