填充elasticsearch索引时发生java错误

vbopmzt1  于 2021-06-10  发布在  ElasticSearch
关注(0)|答案(0)|浏览(251)

我有一个用symfony制作的应用程序,我使用fos elastica bundle一切正常,但由于我需要更新我的许多bundle,我决定将fos elastica bundle也更新到主版本(其他版本缺少我需要的功能)
不管怎样,由于我的旧配置文件已经不好了(“类型”已经被删除),我按照手册的要求,在使用了他们使用的相同的基本配置之后,我想试试看它是否工作……aaaaa,它没有。当然。
下面是我得到的错误:

In Http.php line 183:

  class java.util.ArrayList cannot be cast to class java.util.Map (java.util.ArrayList and java.util.Map are in module java.base of loader 'bootstrap')

这是我的配置文件:

fos_elastica:
    clients:
        default: { url: '%env(ELASTICSEARCH_URL)%' }
    indexes:
        videos:
            persistence:
                driver: orm
                model: App\Entity\Video
                provider: ~
                finder: ~
            properties:
                title: ~
                duration: ~

# tags: { boost: 2 }

                createdAt: ~

以及我的服务。yaml:

services:
    # default configuration for services in *this* file
    _defaults:
        autowire: true      # Automatically injects dependencies in your services.
        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
        bind:
            $videoFinder: '@fos_elastica.index.videos'

这个消息来自一个依赖性(ruflin/elastica中的http.php),所以我想知道这是否真的是一个依赖性问题,或者是我的配置失败了
谢谢

暂无答案!

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

相关问题