填充elasticsearch索引时发生java错误

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

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

  1. In Http.php line 183:
  2. 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')

这是我的配置文件:

  1. fos_elastica:
  2. clients:
  3. default: { url: '%env(ELASTICSEARCH_URL)%' }
  4. indexes:
  5. videos:
  6. persistence:
  7. driver: orm
  8. model: App\Entity\Video
  9. provider: ~
  10. finder: ~
  11. properties:
  12. title: ~
  13. duration: ~
  14. # tags: { boost: 2 }
  15. createdAt: ~

以及我的服务。yaml:

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

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

暂无答案!

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

相关问题