【问题标题】:Symfony FOSElastica ResponseException with ElasticsearchSymfony FOSElastica ResponseException 与 Elasticsearch
【发布时间】:2014-08-20 22:56:38
【问题描述】:

我在我的 Symfony 项目中安装了带有 Composer 的 FOSElastica 3.0。 这是我的配置:

fos_elastica:
    clients:
        default: { host: localhost, port: 9200 }
    indexes:
        search:
          types:
            keyword:
                mappings:
                    value:
                      type: string
                persistence:
                    driver: orm
                    model: Anklick\UserPagesBundle\Entity\Keyword
                    provider: ~
                    listener:
                        immediate: ~
                    finder: ~

很简单吧?

现在当我这样做的时候 php app/console fos:elastica:populate

它说我:

Resetting search

[Elastica\Exception\ResponseException]
ClassCastException[java.util.ArrayList cannot be cast to java.util.Map]

有什么问题?

编辑:fos:elastica:reset 存在同样的问题

【问题讨论】:

    标签: java php symfony elasticsearch foselasticabundle


    【解决方案1】:

    此问题已在 3.0 版中修复

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-16
      • 2016-05-04
      • 2020-07-28
      • 2014-08-11
      • 2018-11-08
      • 1970-01-01
      相关资源
      最近更新 更多