# Unsupported Mapping definition

**URL:** <https://discuss.elastic.co/t/unsupported-mapping-definition/120347>\
**Category:** Elasticsearch\
**Created:** [February 18, 2018, 11:32am UTC](https://discuss.elastic.co/t/unsupported-mapping-definition/120347 "2018-02-18T11:32:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xxTeja83xx](https://avatars.discourse-cdn.com/v4/letter/x/b5a626/32.png) [@xxTeja83xx](https://discuss.elastic.co/u/xxTeja83xx)\
**Post date:** [February 18, 2018, 11:32am UTC](https://discuss.elastic.co/t/unsupported-mapping-definition/120347/1 "2018-02-18T11:32:37Z")

</div>

Hello,  
im new to elastic, got and old project with not updateable Elasticsearch 2.4  
i tried to index on my local dev maschine but got the following error:

> [Elastica\Exception\ResponseException]  
> {"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"Mapping definition for [\_parent] has unsupported parameters: [identifier : id] [property : user]"}],"type":"mapper\_parsing\_exception  
> ","reason":"Failed to parse mapping [employee\_profile]: Mapping definition for [\_parent] has unsupported parameters: [identifier : id] [property : user]","caused\_by":{"type":"mapper\_parsing\_ex  
> ception","reason":"Mapping definition for [\_parent] has unsupported parameters: [identifier : id] [property : user]"}}

this is the definition file:

```
    fos_elastica:
      clients:
          default: { host: %elastic_host%, port: %elastic_port%, logger: true }
      indexes:
          portal_user:
              settings:
                index:
                  analysis:
                    analyzer:
                      whitespace_lowercase:
                        type: custom
                        tokenizer: whitespace
                        filter: lowercase
              client: default
              finder: ~
              types:
                  user:
                      mappings:
                          username:
                              type: string
                          enabled:
                              type: boolean
                              index: not_analyzed
                          locked:
                              type: boolean
                              index: not_analyzed
                        roles:
                            type: string
                            index: not_analyzed
                    persistence:
                        driver: orm
                        model: BaseBundle\Entity\User\User
                        finder: ~
                        provider: ~
                        listener: ~
                employee_profile:
                    mappings:
                        firstName:
                            type: string
                            analyzer: whitespace_lowercase
                        lastName:
                            type: string
                            analyzer: whitespace_lowercase
                        profileJobName:
                            type: string
                            analyzer: whitespace_lowercase
                        geoLocation:
                            type: geo_point
                        employmentInterestIds:
                            type: integer
                        languageAbilityTagIds:
                            type: integer
                        mobilityTagIds:
                            type: integer
                        specialAbilitiesTagIds:
                            type: integer
                        available:
                            type: boolean
                            index: not_analyzed
                        availableTo:
                            index: not_analyzed
                        updatedAt:
                            index: not_analyzed
                        createdAt:
                            index: not_analyzed
                    _parent:
                        type: user
                        property: user
                    persistence:
                        driver: orm
                        model: BaseBundle\Entity\User\Employee\Profile
                        elastica_to_model_transformer:
                            query_builder_method: createSearchQueryBuilder
                        finder: ~
                        provider: ~
                        listener: ~
                company:
                    mappings:
                        name:
                            type: string
                            analyzer: whitespace_lowercase
                        slug:
                            type: string
                        category:
                            type: string
                            analyzer: whitespace_lowercase
                        geoLocation:
                            type: geo_point
                    _parent:
                        type: user
                        property: user
                    persistence:
                        driver: orm
                        model: BaseBundle\Entity\User\Company\Company
                        finder: ~
                        provider: ~
                        listener: ~

```

any1 have a hint, whats the problem with the mapping is?

---

<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:** [March 18, 2018, 11:32am UTC](https://discuss.elastic.co/t/unsupported-mapping-definition/120347/2 "2018-03-18T11:32:40Z")

</div>

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