G
G
great_772020-01-26 09:39:38
symfony
great_77, 2020-01-26 09:39:38

How to solve the error when importing data into Elastic: Root mapping definition has unsupported parameters?

Using bundle: friendsofsymfony/elastica-bundle
On startup: bin/console fos:elastica:populate
Error:

Root mapping definition has unsupported parameters: [hero : {dynamic_date_formats=[], _meta={model=AppBundle\Entit
y\Hero}, properties={name={type=text}}}] [reason: Failed to parse mapping [ _doc]: Root mapping definition has unsupported
parameters: [hero : {dynamic_date_formats=[], _meta={model=AppBundle\Entity\Hero}, pИroperties={name={type=t
ext}}}]]

Here are the configs:
fos_elastica:
    clients:
        default: { host: 190.61.6.3, port: 9200, username: 'elastic', password: '123456'}
    indexes:
        app:
            types:
                hero: # the name of our type
                    properties:
                        name:
                            #analyzer: keyword_analyzer
                            #search_analyzer: keyword_analyzer
                            type: text
                    persistence:
                        driver: orm
                        model: AppBundle\Entity\Hero
                        provider: ~
                        finder: ~
                        repository: AppBundle\Repository\HeroRepository

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
great_77, 2020-03-06
@great_77

Installed Elastica bundle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question