1

Composer を使用して FOSElastica 3.0 を Symfony プロジェクトにインストールしました。これは私の設定です:

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

4

1 に答える 1

0

この問題は、バージョン 3.0 で修正されました。

于 2015-12-21T11:36:34.633 に答える