# Fielddata and different types with the same field name in index

**URL:** <https://discuss.elastic.co/t/fielddata-and-different-types-with-the-same-field-name-in-index/28482>\
**Category:** Elasticsearch\
**Created:** [September 2, 2015, 4:01am UTC](https://discuss.elastic.co/t/fielddata-and-different-types-with-the-same-field-name-in-index/28482 "2015-09-02T04:01:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Anton\_Bogdanovich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anton_bogdanovich/32/44922_2.png) [@Anton\_Bogdanovich](https://discuss.elastic.co/u/Anton_Bogdanovich)\
**Post date:** [September 2, 2015, 6:39pm UTC](https://discuss.elastic.co/t/fielddata-and-different-types-with-the-same-field-name-in-index/28482/3 "2015-09-02T18:39:00Z")

</div>

Thanks for reply.

We have an issue with not working aggregations  
([Aggregations stop working silently on elasticsearch 1.4.4](https://discuss.elastic.co/t/aggregations-stop-working-silently-on-elasticsearch-1-4-4/28480))  
Could this mapping be an issue (child type field has doc\_values: true and parent type does not) ?

```
           contact: {
              properties: {
                contact_id: { type: 'long', index: 'not_analyzed'}
              }
            },
            event: {
              _parent: { type: :contact },
              properties: {
                user_id: { type: 'long', index: 'not_analyzed' },
                contact_id: { type: 'long', index: 'not_analyzed', doc_values: true },
                data: { type: 'object', index: 'not_analyzed' },
              }
            }

```

---

_[View the full topic](https://discuss.elastic.co/t/fielddata-and-different-types-with-the-same-field-name-in-index/28482)._
