# Index templates

**URL:** <https://discuss.elastic.co/t/index-templates/279952>\
**Category:** Kibana\
**Created:** [July 29, 2021, 8:14am UTC](https://discuss.elastic.co/t/index-templates/279952 "2021-07-29T08:14:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ailengcon](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@ailengcon](https://discuss.elastic.co/u/ailengcon)\
**Post date:** [July 29, 2021, 8:14am UTC](https://discuss.elastic.co/t/index-templates/279952/1 "2021-07-29T08:14:42Z")

</div>

When I ingest my index from MongoDb via monstache, the indexing is causing some of the documents not being indexed because it can't map the fields right. I have being trying (for days) to figure out the index template option. But when I use it, all it does is adding fields. So instead of 194 fields I get 500 for example. There's is little documentation about this.

In my database I have nested fields (arrays) that I want to group by each object in that array, but now it only group each property inside the object.

So for example

param (array)  
-- obj 1  
---- index 1  
---- value 2  
-- obj 2  
---- index 3  
---- value 4

but what it does now is

param

index 1,3  
value 2,4

these are fields that contain a lot more than these two values so it's not really optimal for them to group if you want a quick overview of the values.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [August 3, 2021, 6:35pm UTC](https://discuss.elastic.co/t/index-templates/279952/2 "2021-08-03T18:35:25Z")

</div>

Kibana part of the forum is not the best one to receive help for this. This is an ingestion question so I would put it in the Elasticsearch area. If you're open to using something else for ingestion, I think we have mongoDB connectors for both Beats and Logstash.

---

<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:** [August 31, 2021, 6:36pm UTC](https://discuss.elastic.co/t/index-templates/279952/3 "2021-08-31T18:36:24Z")

</div>

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