Unsupported Mapping definition

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?

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