使用进度栏时出错:最大值必须为正整数 [英] Error using progress bar: Max must be a positive integer

查看:90
本文介绍了使用进度栏时出错:最大值必须为正整数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我用solr重新索引a时,都会出现以下错误

Whenever I reindex a with solr, I get the following error

$ RAILS_ENV=development rake sunspot:solr:reindex
Error using progress bar: Max must be a positive integer

我该如何解决?

推荐答案

可能的原因是,您要重新安装的数据库没有数据.进度条将显示已重新建立索引的数量/数据库中有多少记录".因此,如果没有数据,则无法初始化进度条.预计黑子会显示出更好的错误消息

The possible reason is, your database to reinstall has no data. The progress bar is to show "how much has reindexed / how much records in DB". So if you have no data, the progress bar can't be initialized. Sunspot is expected to show a better error message

这篇关于使用进度栏时出错:最大值必须为正整数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆