How to build task 'elasticsearch:import:model'

后端 未结 1 1579
广开言路
广开言路 2021-02-06 07:33

Well, I have elasticsearch-rails gem installed (version 0.1.5) and I can clearly see the task inside the gem files.

But when I run

bundle exec rake envi         


        
1条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 07:44

    you need create elasticsearch.rake

    cat lib/tasks/elasticsearch.rake
    require 'elasticsearch/rails/tasks/import'
    

    0 讨论(0)
提交回复
热议问题