Error using progress bar: Max must be a positive integer

情到浓时终转凉″ 提交于 2019-12-24 00:53:30

问题


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

How do I fix this?


回答1:


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



来源:https://stackoverflow.com/questions/26435813/error-using-progress-bar-max-must-be-a-positive-integer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!