我正在使用curl查询来尝试从我的elasticsearch实例获取数据。 我所有的索引和类型都有一个@timestamp字段调用,它使用“ strict_date_optional_time”格式。 但是每次我尝试在该字段上使用范围过滤器时,查询都会失败。 我执行的查询: curl ...
提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供 中文繁体 英文版本 中英对照 版本,有任何建议请联系yoyou2525@163.com。
2015-01-14T19:52:56.805276+00:00 app[web.1]: ScopedSearch::QueryNotSupported (relation 'schedule_locations' not one of requisition_plan, machine, schedule_machines, schedule_locations, requisition_plan_products, products, product_categories ):
2015-01-14T19:52:56.805279+00:00 app[web.1]: app/controllers/api/v1/requisition_plan_machines_controller.rb:24:in `index'
2015-01-14T19:52:56.754434+00:00 heroku[router]: at=info method=GET path="/api/v1/schedules/225/requisition_plan/requisition_plan_machines.json?token=mytoken&query=day%3Dmonday%26machine_type%3Dcombo"
requisition_plan_machines_controller
def index
@requisition_plan_machines = @requisition_plan_machines.ordered_by_name.search_for(params[:query])
end
“ schedule_locations”不是... schedule_locations
...之一吗? 在列表中,为什么不搜索?
我只是将ruby&rails升级到了最新版本,然后遇到了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.