Symfony FOSElasticaBundle configuration

I am having a problem.

  • Symfony: 4.4
  • Elasticsearch: 7.6.1
  • FOSElasticaBundle: 5.1
  • PHP: 7.2.26

My configuration:

fos_elastica:
    clients:
        default: { url: '%env(ELASTICSEARCH_URL)%' }
    indexes:
        app:
            finder: ~
            types:
                city:
                    properties:
                        name: ~
                    persistence:
                        driver: orm
                        model: AppEntityCity
                        provider: ~
                        finder: ~

Command:

php bin/console fos:elastica:populate

Error:

Root mapping definition has unsupported parameters:  [city : {dynamic_date_formats=[], _meta={model=AppEntityCity}, properties={name={type=text}}}] [reason: Failed to parse mapping [_doc]: Root map
  ping definition has unsupported parameters:  [city : {dynamic_date_formats=[], _meta={model=AppEntityCity}, properties={name={type=text}}}]]

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *