找不到uri 和方法的处理程序
嗨,我正在使用ruby-2.4.0和rails 5进行RoR项目。我正在使用elasticsearch在我的应用程序中进行搜索。 我有一个模型venue_details如下: –
class VenueDetail :not_analyzed indexes :venue_name, :type => 'string', :index => :analyzed end end def self.search(params) if params[:query].present? tire.search(load: true) do query { string "*#{params[:query]}*", default_operator: "AND" } size 100 end else tire.search(load: true) do query { string "*#{params[:term]}*", default_operator: "AND"} size 100 end end end end
我正在使用elasticsearch-5.1.2。 我试图用命令rake environment tire:import CLASS=VenueDetail FORCE=true
重新索引场地细节rake environment tire:import CLASS=VenueDetail FORCE=true
它会抛出如下错误: –
There has been an error when creating the index -- elasticsearch returned: 400 : No handler found for uri [/venue_details] and method [POST]
请帮助我如何解决它。 提前致谢。
- Sprockets :: FileNotFound找不到类型为’text / css’的文件’bootstrap’
- rails 3:使用devise进行身份validation,如何允许使用guid而不是登录来访问报告页面