erro ao tentar criar索引,通过composer no elasticsearch

ac1kyiln  于 2021-07-13  发布在  ElasticSearch
关注(0)|答案(0)|浏览(179)

**结束。**此问题不符合堆栈溢出准则。它目前不接受答案。
**想改进这个问题吗?**更新问题,使其成为堆栈溢出的主题。

三天前关门了。
改进这个问题
quando eu tento rodar o comando php bin/控制台fos:elastica:通过composer resulta nesse erro abaixo创建:

In Http.php line 182:

  Root mapping definition has unsupported parameters:  [articles : {dynamic_date_formats=[], _meta={model=App\Entity\Article}, properties={name={type=text}, typ  
  e={type=text}, keyword={type=text}, slug={type=text}}}] [reason: Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:  [article  
  s : {dynamic_date_formats=[], _meta={model=App\Entity\Article}, properties={name={type=text}, type={type=text}, keyword={type=text}, slug={type=text}}}]]       

fos:elastica:create [--index [INDEX]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no
-debug] [--] <command>

阿基伊斯特á minha配置ção无arquivo fos_elastica.yaml:

fos_elastica:
    clients:
        default: { host: '%es_host%', port: '%es_port%' }
    indexes:
        app:
            use_alias: true
            types:
                articles:
                    properties:
                        type: ~
                        name: ~
                        slug: ~
                        keyword: ~
                    persistence:
                        driver: orm
                        model: App\Entity\Article

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题